[PATCH 1/1] timer_list: remove useless cast when printing

From: Mars Cheng
Date: Thu Feb 09 2017 - 02:56:50 EST


hrtimer_resolution is already unsigned int, not necessary to cast
it when printing.

Signed-off-by: Mars Cheng <mars.cheng@xxxxxxxxxxxx>
---
kernel/time/timer_list.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/time/timer_list.c b/kernel/time/timer_list.c
index afe6cd1..dbc37e0 100644
--- a/kernel/time/timer_list.c
+++ b/kernel/time/timer_list.c
@@ -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);
--
1.7.9.5