diff options
| author | Michael Brown | 2010-06-15 18:33:23 +0200 |
|---|---|---|
| committer | Michael Brown | 2010-06-22 15:26:40 +0200 |
| commit | 4bfd5b52c1fae75eb0449af626ec69543f9334fa (patch) | |
| tree | 297bc75308e763df909fb0733c0ca2ac109ebcbc /src/drivers/block | |
| parent | [pcnet32] Replace pcnet32 with native driver (diff) | |
| download | ipxe-4bfd5b52c1fae75eb0449af626ec69543f9334fa.tar.gz ipxe-4bfd5b52c1fae75eb0449af626ec69543f9334fa.tar.xz ipxe-4bfd5b52c1fae75eb0449af626ec69543f9334fa.zip | |
[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>
Diffstat (limited to 'src/drivers/block')
| -rw-r--r-- | src/drivers/block/srp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/block/srp.c b/src/drivers/block/srp.c index d90401e5e..49fb214ea 100644 --- a/src/drivers/block/srp.c +++ b/src/drivers/block/srp.c @@ -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 ); |
