mirror of
https://github.com/ipxe/ipxe
synced 2025-12-25 09:01:24 +03:00
[retry] Add timer_init() wrapper function
Standardise on using timer_init() to initialise an embedded retry timer, to match the coding style used by other embedded objects. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -281,8 +281,8 @@ ib_create_madx ( struct ib_device *ibdev, struct ib_mad_interface *mi,
|
||||
madx = zalloc ( sizeof ( *madx ) );
|
||||
if ( ! madx )
|
||||
return NULL;
|
||||
timer_init ( &madx->timer, ib_mi_timer_expired );
|
||||
madx->mi = mi;
|
||||
madx->timer.expired = ib_mi_timer_expired;
|
||||
madx->op = op;
|
||||
|
||||
/* Determine address vector */
|
||||
|
||||
Reference in New Issue
Block a user