mirror of
https://github.com/ipxe/ipxe
synced 2025-12-31 15:25:23 +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:
@@ -1792,7 +1792,7 @@ int iscsi_attach ( struct scsi_device *scsi, const char *root_path ) {
|
||||
iscsi = zalloc ( sizeof ( *iscsi ) );
|
||||
if ( ! iscsi )
|
||||
return -ENOMEM;
|
||||
iscsi->refcnt.free = iscsi_free;
|
||||
ref_init ( &iscsi->refcnt, iscsi_free );
|
||||
xfer_init ( &iscsi->socket, &iscsi_socket_operations, &iscsi->refcnt );
|
||||
process_init ( &iscsi->process, iscsi_tx_step, &iscsi->refcnt );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user