diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-05-08 04:32:44 -0400 |
---|---|---|
committer | Sumit Semwal <sumit.semwal@linaro.org> | 2017-05-08 11:20:21 -0400 |
commit | 9eddb41dbe98b4854e64a69b686ace734c2c7aa0 (patch) | |
tree | 19ec73e9e3333980fad4a1669003cabfef339ee6 /drivers/dma-buf | |
parent | 8f6e1e22e7d0d4697120e82845036db4f9e4de5b (diff) |
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: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Diffstat (limited to 'drivers/dma-buf')
-rw-r--r-- | drivers/dma-buf/dma-buf.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/dma-buf/dma-buf.c b/drivers/dma-buf/dma-buf.c index 512bdbc23bbb..53257c166f4d 100644 --- a/drivers/dma-buf/dma-buf.c +++ b/drivers/dma-buf/dma-buf.c | |||
@@ -1122,9 +1122,7 @@ static int dma_buf_debug_show(struct seq_file *s, void *unused) | |||
1122 | attach_count = 0; | 1122 | attach_count = 0; |
1123 | 1123 | ||
1124 | list_for_each_entry(attach_obj, &buf_obj->attachments, node) { | 1124 | list_for_each_entry(attach_obj, &buf_obj->attachments, node) { |
1125 | seq_puts(s, "\t"); | 1125 | seq_printf(s, "\t%s\n", dev_name(attach_obj->dev)); |
1126 | |||
1127 | seq_printf(s, "%s\n", dev_name(attach_obj->dev)); | ||
1128 | attach_count++; | 1126 | attach_count++; |
1129 | } | 1127 | } |
1130 | 1128 | ||