OSDN Git Service

IB/qib: Use setup_timer and mod_timer
authorHimanshu Jha <himanshujha199640@gmail.com>
Sun, 24 Sep 2017 11:51:07 +0000 (17:21 +0530)
committerDoug Ledford <dledford@redhat.com>
Fri, 29 Sep 2017 15:18:56 +0000 (11:18 -0400)
commite1ac263fcb58a63aed0d9a75d22e045f88a53bb2
tree4e9c5a7b41a29c287f2c48fcb43630d643a28220
parente538e0aca33f81fbfaa10a6954b40ff4360686dd
IB/qib: Use setup_timer and mod_timer

Use setup_timer and mod_timer API instead of structure assignments.

This is done using Coccinelle and semantic patch used
for this as follows:

@@
expression x,y,z,a,b;
@@

-init_timer (&x);
+setup_timer (&x, y, z);
+mod_timer (&a, b);
-x.function = y;
-x.data = z;
-x.expires = b;
-add_timer(&a);

Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/qib/qib_driver.c
drivers/infiniband/hw/qib/qib_mad.c