lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Fri, 10 Feb 2017 02:19:22 -0800
From:   tip-bot for Mars Cheng <tipbot@...or.com>
To:     linux-tip-commits@...r.kernel.org
Cc:     linux-kernel@...r.kernel.org, john.stultz@...aro.org,
        jades.shih@...iatek.com, tglx@...utronix.de,
        loda.chou@...iatek.com, mars.cheng@...iatek.com,
        yingjoe.chen@...iatek.com, miles.chen@...iatek.com,
        my.chuang@...iatek.com, mingo@...nel.org, hpa@...or.com,
        cc.hwang@...iatek.com, matthias.bgg@...il.com
Subject: [tip:timers/core] timer_list: Remove useless cast when printing

Commit-ID:  7551b02b94ad1daee3a79d667dc3c46d08328f87
Gitweb:     http://git.kernel.org/tip/7551b02b94ad1daee3a79d667dc3c46d08328f87
Author:     Mars Cheng <mars.cheng@...iatek.com>
AuthorDate: Thu, 9 Feb 2017 15:50:15 +0800
Committer:  Thomas Gleixner <tglx@...utronix.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@...iatek.com>
Cc: CC Hwang <cc.hwang@...iatek.com>
Cc: wsd_upstream@...iatek.com
Cc: Loda Chou <loda.chou@...iatek.com>
Cc: Jades Shih <jades.shih@...iatek.com>
Cc: Miles Chen <miles.chen@...iatek.com>
Cc: John Stultz <john.stultz@...aro.org>
Cc: My Chuang <my.chuang@...iatek.com>
Cc: Matthias Brugger <matthias.bgg@...il.com>
Cc: Yingjoe Chen <yingjoe.chen@...iatek.com>
Link: http://lkml.kernel.org/r/1486626615-5879-1-git-send-email-mars.cheng@mediatek.com
Signed-off-by: Thomas Gleixner <tglx@...utronix.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);

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ