[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e93293e4-ca8c-a1a3-e098-ff9d80a91186@users.sourceforge.net>
Date: Wed, 3 May 2017 22:39:53 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: Ingo Molnar <mingo@...hat.com>,
Peter Zijlstra <peterz@...radead.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: [PATCH 4/6] lockdep: Combine two seq_printf() calls into one call in
l_show()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Wed, 3 May 2017 21:56:11 +0200
A bit of data was put into a sequence by two separate function calls.
Print the same data by a single function call instead.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
kernel/locking/lockdep_proc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/kernel/locking/lockdep_proc.c b/kernel/locking/lockdep_proc.c
index a353f53b6de6..2cc0ccd2b3de 100644
--- a/kernel/locking/lockdep_proc.c
+++ b/kernel/locking/lockdep_proc.c
@@ -75,7 +75,5 @@ static int l_show(struct seq_file *m, void *v)
#endif
get_usage_chars(class, usage);
- seq_printf(m, " %s", usage);
-
- seq_printf(m, ": ");
+ seq_printf(m, " %s: ", usage);
print_name(m, class);
--
2.12.2
Powered by blists - more mailing lists