From: Somya Anand Date: Wed, 11 Mar 2015 11:32:15 +0000 (+0530) Subject: Staging: lustre: Use setup_timer to combine initialization X-Git-Tag: omap-for-v4.2/o2_dc~155^2~138^2~451 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed0ed4ea7755559ee04aab8695cb91610f5e539a;p=pandora-kernel.git Staging: lustre: Use setup_timer to combine initialization The function setup_timer combines the initialization of a timer with the initialization of the timer's function and data fields. So, this patch combines the multiline code for timer initialization using the function setup_timer. This issue is identified via coccinelle script. @@ expression E1, E2, E3; type T; @@ - init_timer(&E1); ... ( - E1.function = E2; ... - E1.data = (T)E3; + setup_timer(&E1, E2, (T)E3); | - E1.data = (T)E3; ... - E1.function = E2; + setup_timer(&E1, E2, (T)E3); | - E1.function = E2; + setup_timer(&E1, E2, 0); ) Signed-off-by: Somya Anand Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed