[PATCH 4/6] lockdep: Combine two seq_printf() calls into one call in l_show()
From: SF Markus Elfring
Date: Wed May 03 2017 - 16:40:38 EST
From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxxxxxxxx>
---
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