diff options
author | Kees Cook <keescook@chromium.org> | 2017-10-23 03:40:42 -0400 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2017-11-21 19:35:54 -0500 |
commit | 841b86f3289dbe858daeceec36423d4ea286fac2 (patch) | |
tree | 332a53d6045914798e364a534fe3a47cab56d803 /net/can/proc.c | |
parent | 919b250f8570618e84af544c3e18dad5210eb9b6 (diff) |
treewide: Remove TIMER_FUNC_TYPE and TIMER_DATA_TYPE casts
With all callbacks converted, and the timer callback prototype
switched over, the TIMER_FUNC_TYPE cast is no longer needed,
so remove it. Conversion was done with the following scripts:
perl -pi -e 's|\(TIMER_FUNC_TYPE\)||g' \
$(git grep TIMER_FUNC_TYPE | cut -d: -f1 | sort -u)
perl -pi -e 's|\(TIMER_DATA_TYPE\)||g' \
$(git grep TIMER_DATA_TYPE | cut -d: -f1 | sort -u)
The now unused macros are also dropped from include/linux/timer.h.
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'net/can/proc.c')
-rw-r--r-- | net/can/proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/can/proc.c b/net/can/proc.c index d979b3dc49a6..0c59f876fe6f 100644 --- a/net/can/proc.c +++ b/net/can/proc.c | |||
@@ -221,7 +221,7 @@ static int can_stats_proc_show(struct seq_file *m, void *v) | |||
221 | 221 | ||
222 | seq_putc(m, '\n'); | 222 | seq_putc(m, '\n'); |
223 | 223 | ||
224 | if (net->can.can_stattimer.function == (TIMER_FUNC_TYPE)can_stat_update) { | 224 | if (net->can.can_stattimer.function == can_stat_update) { |
225 | seq_printf(m, " %8ld %% total match ratio (RXMR)\n", | 225 | seq_printf(m, " %8ld %% total match ratio (RXMR)\n", |
226 | can_stats->total_rx_match_ratio); | 226 | can_stats->total_rx_match_ratio); |
227 | 227 | ||
@@ -291,7 +291,7 @@ static int can_reset_stats_proc_show(struct seq_file *m, void *v) | |||
291 | 291 | ||
292 | user_reset = 1; | 292 | user_reset = 1; |
293 | 293 | ||
294 | if (net->can.can_stattimer.function == (TIMER_FUNC_TYPE)can_stat_update) { | 294 | if (net->can.can_stattimer.function == can_stat_update) { |
295 | seq_printf(m, "Scheduled statistic reset #%ld.\n", | 295 | seq_printf(m, "Scheduled statistic reset #%ld.\n", |
296 | can_pstats->stats_reset + 1); | 296 | can_pstats->stats_reset + 1); |
297 | } else { | 297 | } else { |