staging: slicloss: replace init_timer by setup_timer
authorAya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Thu, 19 Feb 2015 06:00:56 +0000 (08:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Feb 2015 21:12:40 +0000 (13:12 -0800)
commit7d2b3cf7cfb328cc494cc4775c60bbf5f2fa2ce2
treef9ca87c5830fdcd0e3b83975b3062aae13c811e7
parent4fde58bb43512fc283ea76e90d20198da177fb69
staging: slicloss: replace init_timer by setup_timer

This patch replaces init_timer and the 2 step initialization of function
and data by setup_timer to make the code more concise.

The issue was discovered using the following coccinelle script:

@@
expression ds, e1, e2;
@@

-init_timer (&ds);
+setup_timer (&ds, e1, e2);
...
(
-ds.function = e1;
...
-ds.data = e2;
|
-ds.data = e2;
...
-ds.function = e1;
)

Signed-off-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/slicoss/slicoss.c