diff options
| author | 2015-03-11 17:02:16 +0530 | |
|---|---|---|
| committer | 2015-03-16 15:54:13 +0100 | |
| commit | acc6539fe6293373ded751162e77c10f532336c6 (patch) | |
| tree | 8e84eaa88eb8c0bb57c26afdaccecefcaa368981 /include/linux/string.h | |
| parent | Staging: rtl8192u: Review phrase and fix spelling errors (diff) | |
Staging: rtl8192u: Combine initialization using setup_timer
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 <somyaanand214@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/string.h')
0 files changed, 0 insertions, 0 deletions
