mirror of
https://github.com/ipxe/ipxe
synced 2025-12-21 12:30:20 +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:
@@ -439,10 +439,10 @@ int aoe_attach ( struct ata_device *ata, struct net_device *netdev,
|
||||
if ( ! aoe )
|
||||
return -ENOMEM;
|
||||
ref_init ( &aoe->refcnt, aoe_free );
|
||||
timer_init ( &aoe->timer, aoe_timer_expired );
|
||||
aoe->netdev = netdev_get ( netdev );
|
||||
memcpy ( aoe->target, netdev->ll_broadcast, sizeof ( aoe->target ) );
|
||||
aoe->tag = AOE_TAG_MAGIC;
|
||||
aoe->timer.expired = aoe_timer_expired;
|
||||
|
||||
/* Parse root path */
|
||||
if ( ( rc = aoe_parse_root_path ( aoe, root_path ) ) != 0 )
|
||||
|
||||
Reference in New Issue
Block a user