Skip to contentSkip to conversation

android: binder: Use seq_putc() in print_binder_node()

PATCH New SF Markus Elfring 1 participant 1 message May 7, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 android: binder: Use seq_putc() in print_binder_node()

From: Markus Elfring <[email protected]>
Date: Sun, 7 May 2017 22:07:16 +0200

A single character (line break) should be put into a sequence. Thus use the corresponding function "seq_putc".

This issue was detected by using the Coccinelle software.

---
 drivers/android/binder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/android/binder.c +1 -1
index aae4d8d4be36..041b49b0bbd9 100644
@@ -3871,7 +3871,7 @@ static void print_binder_node(struct seq_file *m, struct binder_node *node)
 		hlist_for_each_entry(ref, &node->refs, node_entry)
 			seq_printf(m, " %d", ref->proc->pid);
 	}
-	seq_puts(m, "\n");
+	seq_putc(m, '\n');
 	list_for_each_entry(w, &node->async_todo, entry)
 		print_binder_work(m, "    ",
 				  "    pending async transaction", w);
Signature · 1 line
2.12.2