Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1577361 > unrolled thread
| Started by | Mars Cheng <mars.cheng@mediatek.com> |
|---|---|
| First post | 2017-02-09 09:00 +0100 |
| Last post | 2017-02-10 11:50 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH 1/1] timer_list: remove useless cast when printing Mars Cheng <mars.cheng@mediatek.com> - 2017-02-09 09:00 +0100
[tip:timers/core] timer_list: Remove useless cast when printing tip-bot for Mars Cheng <tipbot@zytor.com> - 2017-02-10 11:50 +0100
| From | Mars Cheng <mars.cheng@mediatek.com> |
|---|---|
| Date | 2017-02-09 09:00 +0100 |
| Subject | [PATCH 1/1] timer_list: remove useless cast when printing |
| Message-ID | <t8RO1-3hk-1@gated-at.bofh.it> |
hrtimer_resolution is already unsigned int, not necessary to cast it when printing. Signed-off-by: Mars Cheng <mars.cheng@mediatek.com> --- 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
[toc] | [next] | [standalone]
| From | tip-bot for Mars Cheng <tipbot@zytor.com> |
|---|---|
| Date | 2017-02-10 11:50 +0100 |
| Subject | [tip:timers/core] timer_list: Remove useless cast when printing |
| Message-ID | <t9gW6-2gP-7@gated-at.bofh.it> |
| In reply to | #1577361 |
Commit-ID: 7551b02b94ad1daee3a79d667dc3c46d08328f87 Gitweb: http://git.kernel.org/tip/7551b02b94ad1daee3a79d667dc3c46d08328f87 Author: Mars Cheng <mars.cheng@mediatek.com> AuthorDate: Thu, 9 Feb 2017 15:50:15 +0800 Committer: Thomas Gleixner <tglx@linutronix.de> 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 <mars.cheng@mediatek.com> Cc: CC Hwang <cc.hwang@mediatek.com> Cc: wsd_upstream@mediatek.com Cc: Loda Chou <loda.chou@mediatek.com> Cc: Jades Shih <jades.shih@mediatek.com> Cc: Miles Chen <miles.chen@mediatek.com> Cc: John Stultz <john.stultz@linaro.org> Cc: My Chuang <my.chuang@mediatek.com> Cc: Matthias Brugger <matthias.bgg@gmail.com> Cc: Yingjoe Chen <yingjoe.chen@mediatek.com> Link: http://lkml.kernel.org/r/1486626615-5879-1-git-send-email-mars.cheng@mediatek.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de> --- 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 387a3a5..ff8d5c1 100644 --- a/kernel/time/timer_list.c +++ b/kernel/time/timer_list.c @@ -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);
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web