timer_list: remove useless cast when printing
PATCH 1/1 timer_list: remove useless cast when printing
hrtimer_resolution is already unsigned int, not necessary to cast it when printing.
Signed-off-by Mars Cheng <[email protected]>
--- kernel/time/timer_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/time/timer_list.c +1 -1
@@ -127,7 +127,7 @@ static void print_name_offset(struct seq_file *m, void *sym)SEQ_printf (m," .base: %pK\n" , base);SEQ_printf (m," .index: %d\n" , base->index); -SEQ_printf (m," .resolution: %u nsecs\n" , (unsigned ) hrtimer_resolution); +SEQ_printf (m," .resolution: %u nsecs\n" , hrtimer_resolution);SEQ_printf (m," .get_time: " );print_name_offset (m, base->get_time);
Signature · 1 line
1.7.9.5
tip-bot for Mars Cheng
merge bot[tip:timers/core] timer_list: Remove useless cast when printing
timer_list: Remove useless cast when printing
Commit-ID: 7551b02b94ad1daee3a79d667dc3c46d08328f87 Gitweb: http://git.kernel.org/tip/7551b02b94ad1daee3a79d667dc3c46d08328f87 Author: Mars Cheng <[email protected]> AuthorDate: Thu, 9 Feb 2017 15:50:15 +0800 Committer: Thomas Gleixner <[email protected]> CommitDate: Fri, 10 Feb 2017 11:15:08 +0100
timer_list: Remove useless cast when printing
hrtimer_resolution is already unsigned int, not necessary to cast it when printing.
Signed-off-by Mars Cheng <[email protected]>
Cc CC Hwang <[email protected]>
Cc Loda Chou <[email protected]>
Cc Jades Shih <[email protected]>
Cc Miles Chen <[email protected]>
Cc John Stultz <[email protected]>
Cc My Chuang <[email protected]>
Cc Matthias Brugger <[email protected]>
Cc Yingjoe Chen <[email protected]>
Signed-off-by Thomas Gleixner <[email protected]>
--- kernel/time/timer_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/time/timer_list.c +1 -1
@@ -117,7 +117,7 @@ print_base(struct seq_file *m, struct hrtimer_clock_base *base, u64 now)SEQ_printf (m," .base: %pK\n" , base);SEQ_printf (m," .index: %d\n" , base->index); -SEQ_printf (m," .resolution: %u nsecs\n" , (unsigned ) hrtimer_resolution); +SEQ_printf (m," .resolution: %u nsecs\n" , hrtimer_resolution);SEQ_printf (m," .get_time: " );print_name_offset (m, base->get_time);