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>
This commit is contained in:
@@ -221,7 +221,7 @@ static int can_stats_proc_show(struct seq_file *m, void *v)
|
||||
|
||||
seq_putc(m, '\n');
|
||||
|
||||
if (net->can.can_stattimer.function == (TIMER_FUNC_TYPE)can_stat_update) {
|
||||
if (net->can.can_stattimer.function == can_stat_update) {
|
||||
seq_printf(m, " %8ld %% total match ratio (RXMR)\n",
|
||||
can_stats->total_rx_match_ratio);
|
||||
|
||||
@@ -291,7 +291,7 @@ static int can_reset_stats_proc_show(struct seq_file *m, void *v)
|
||||
|
||||
user_reset = 1;
|
||||
|
||||
if (net->can.can_stattimer.function == (TIMER_FUNC_TYPE)can_stat_update) {
|
||||
if (net->can.can_stattimer.function == can_stat_update) {
|
||||
seq_printf(m, "Scheduled statistic reset #%ld.\n",
|
||||
can_pstats->stats_reset + 1);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user