mirror of
https://github.com/ipxe/ipxe
synced 2025-12-19 11:00:27 +03:00
[refcnt] Add ref_init() wrapper function
Standardise on using ref_init() to initialise an embedded reference count, to match the coding style used by other embedded objects. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -482,6 +482,7 @@ int srp_attach ( struct scsi_device *scsi, const char *root_path ) {
|
||||
rc = -ENOMEM;
|
||||
goto err_alloc;
|
||||
}
|
||||
ref_init ( &srp->refcnt, NULL );
|
||||
xfer_init ( &srp->socket, &srp_xfer_operations, &srp->refcnt );
|
||||
srp->transport = transport;
|
||||
DBGC ( srp, "SRP %p using %s\n", srp, root_path );
|
||||
|
||||
Reference in New Issue
Block a user