Commit 9eddb41d authored by Markus Elfring's avatar Markus Elfring Committed by Sumit Semwal

dma-buf: Combine two function calls into one in dma_buf_debug_show()

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Reviewed-by: default avatarGustavo Padovan <gustavo.padovan@collabora.com>
Signed-off-by: default avatarSumit Semwal <sumit.semwal@linaro.org>
parent 8f6e1e22
...@@ -1122,9 +1122,7 @@ static int dma_buf_debug_show(struct seq_file *s, void *unused) ...@@ -1122,9 +1122,7 @@ static int dma_buf_debug_show(struct seq_file *s, void *unused)
attach_count = 0; attach_count = 0;
list_for_each_entry(attach_obj, &buf_obj->attachments, node) { list_for_each_entry(attach_obj, &buf_obj->attachments, node) {
seq_puts(s, "\t"); seq_printf(s, "\t%s\n", dev_name(attach_obj->dev));
seq_printf(s, "%s\n", dev_name(attach_obj->dev));
attach_count++; attach_count++;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment