mirror of
https://github.com/ipxe/ipxe
synced 2025-12-20 12:00:19 +03:00
Clarify behaviour of plug() by using intf_put() and intf_get().
This commit is contained in:
@@ -38,9 +38,8 @@
|
||||
* interface into a null interface.
|
||||
*/
|
||||
void plug ( struct interface *intf, struct interface *dest ) {
|
||||
ref_put ( intf->dest->refcnt );
|
||||
intf->dest = dest;
|
||||
ref_get ( intf->dest->refcnt );
|
||||
intf_put ( intf->dest );
|
||||
intf->dest = intf_get ( dest );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user