提交 47a369de 编写于 作者: M Markus Elfring 提交者: Sumit Semwal

dma-buf: Use seq_putc() in two functions

Three single characters (line breaks) should be put into a sequence.
Thus use the corresponding function "seq_putc".

This issue was detected by using the Coccinelle software.
Signed-off-by: NMarkus Elfring <elfring@users.sourceforge.net>
Reviewed-by: NGustavo Padovan <gustavo.padovan@collabora.com>
Signed-off-by: NSumit Semwal <sumit.semwal@linaro.org>
Link: http://patchwork.freedesktop.org/patch/msgid/b8a85220-039a-e4bb-c74b-d76baab234e8@users.sourceforge.net
上级 34d84ec4
...@@ -110,7 +110,7 @@ static void sync_print_fence(struct seq_file *s, ...@@ -110,7 +110,7 @@ static void sync_print_fence(struct seq_file *s,
} }
} }
seq_puts(s, "\n"); seq_putc(s, '\n');
} }
static void sync_print_obj(struct seq_file *s, struct sync_timeline *obj) static void sync_print_obj(struct seq_file *s, struct sync_timeline *obj)
...@@ -161,7 +161,7 @@ static int sync_debugfs_show(struct seq_file *s, void *unused) ...@@ -161,7 +161,7 @@ static int sync_debugfs_show(struct seq_file *s, void *unused)
sync_timeline_list); sync_timeline_list);
sync_print_obj(s, obj); sync_print_obj(s, obj);
seq_puts(s, "\n"); seq_putc(s, '\n');
} }
spin_unlock_irqrestore(&sync_timeline_list_lock, flags); spin_unlock_irqrestore(&sync_timeline_list_lock, flags);
...@@ -173,7 +173,7 @@ static int sync_debugfs_show(struct seq_file *s, void *unused) ...@@ -173,7 +173,7 @@ static int sync_debugfs_show(struct seq_file *s, void *unused)
container_of(pos, struct sync_file, sync_file_list); container_of(pos, struct sync_file, sync_file_list);
sync_print_sync_file(s, sync_file); sync_print_sync_file(s, sync_file);
seq_puts(s, "\n"); seq_putc(s, '\n');
} }
spin_unlock_irqrestore(&sync_file_list_lock, flags); spin_unlock_irqrestore(&sync_file_list_lock, flags);
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册