diff options
author | Michael Brown | 2010-06-15 19:13:36 +0200 |
---|---|---|
committer | Michael Brown | 2010-06-22 15:30:20 +0200 |
commit | c760ac3022ed655e857126ca8ed4df3bfc7ce15a (patch) | |
tree | 591b868661f9a15309772cab6ba6b88bc032e31b /src/net/infiniband | |
parent | [refcnt] Add ref_init() wrapper function (diff) | |
download | ipxe-c760ac3022ed655e857126ca8ed4df3bfc7ce15a.tar.gz ipxe-c760ac3022ed655e857126ca8ed4df3bfc7ce15a.tar.xz ipxe-c760ac3022ed655e857126ca8ed4df3bfc7ce15a.zip |
[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>
Diffstat (limited to 'src/net/infiniband')
-rw-r--r-- | src/net/infiniband/ib_mi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/infiniband/ib_mi.c b/src/net/infiniband/ib_mi.c index b4b64ca4..5a01ce25 100644 --- a/src/net/infiniband/ib_mi.c +++ b/src/net/infiniband/ib_mi.c @@ -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 */ |