summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/nes/nes_mgt.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2017-04-22 04:32:55 +0300
committerDoug Ledford <dledford@redhat.com>2017-04-28 20:19:13 +0300
commit79d9df5618d4dce3d7fefc88feb4b2e60897fd4a (patch)
tree757178c85f952a8a975bdd1d1ca21569408d5f78 /drivers/infiniband/hw/nes/nes_mgt.c
parent96ff2c11c5e8f22f88ecb2fd18e8c0546e3936ed (diff)
downloadlinux-79d9df5618d4dce3d7fefc88feb4b2e60897fd4a.tar.xz
IB/nes: use setup_timer
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang <geliangtang@gmail.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_mgt.c')
-rw-r--r--drivers/infiniband/hw/nes/nes_mgt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/nes/nes_mgt.c b/drivers/infiniband/hw/nes/nes_mgt.c
index 33624f17c347..77226cf4ea02 100644
--- a/drivers/infiniband/hw/nes/nes_mgt.c
+++ b/drivers/infiniband/hw/nes/nes_mgt.c
@@ -1040,9 +1040,8 @@ int nes_init_mgt_qp(struct nes_device *nesdev, struct net_device *netdev, struct
mgtvnic->mgt.rx_skb[counter] = skb;
}
- init_timer(&mgtvnic->rq_wqes_timer);
- mgtvnic->rq_wqes_timer.function = nes_mgt_rq_wqes_timeout;
- mgtvnic->rq_wqes_timer.data = (unsigned long)mgtvnic;
+ setup_timer(&mgtvnic->rq_wqes_timer, nes_mgt_rq_wqes_timeout,
+ (unsigned long)mgtvnic);
wqe_count = NES_MGT_WQ_COUNT - 1;
mgtvnic->mgt.rq_head = wqe_count;