aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/hw.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2010-06-15 17:33:23 +0100
committerMichael Brown <mcb30@ipxe.org>2010-06-22 14:26:40 +0100
commit4bfd5b52c1fae75eb0449af626ec69543f9334fa (patch)
tree297bc75308e763df909fb0733c0ca2ac109ebcbc /src/core/hw.c
parentf4faa27dfd40a2b5af5b9a8e3b0acee3d05c751a (diff)
downloadipxe-4bfd5b52c1fae75eb0449af626ec69543f9334fa.tar.gz
[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/core/hw.c')
-rw-r--r--src/core/hw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hw.c b/src/core/hw.c
index f8dc6be4a..b4a190271 100644
--- a/src/core/hw.c
+++ b/src/core/hw.c
@@ -59,6 +59,7 @@ static int hw_open ( struct xfer_interface *xfer, struct uri *uri __unused ) {
hw = zalloc ( sizeof ( *hw ) );
if ( ! hw )
return -ENOMEM;
+ ref_init ( &hw->refcnt, NULL );
xfer_init ( &hw->xfer, &hw_xfer_operations, &hw->refcnt );
process_init ( &hw->process, hw_step, &hw->refcnt );