projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34d84ec
)
dma-buf: Use seq_putc() in two functions
author
Markus Elfring
<elfring@users.sourceforge.net>
Mon, 8 May 2017 08:55:42 +0000
(10:55 +0200)
committer
Sumit Semwal
<sumit.semwal@linaro.org>
Mon, 8 May 2017 15:20:21 +0000
(20:50 +0530)
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: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link:
http://patchwork.freedesktop.org/patch/msgid/b8a85220-039a-e4bb-c74b-d76baab234e8@users.sourceforge.net
drivers/dma-buf/sync_debug.c
patch
|
blob
|
history
diff --git
a/drivers/dma-buf/sync_debug.c
b/drivers/dma-buf/sync_debug.c
index c769dc653b344ac23fe5a99a36b99a31dc2fceba..a0d780ab68c3546dc3c5c06c7c5d4461b218bfdc 100644
(file)
--- a/
drivers/dma-buf/sync_debug.c
+++ b/
drivers/dma-buf/sync_debug.c
@@
-110,7
+110,7
@@
static void sync_print_fence(struct seq_file *s,
}
}
- seq_put
s(s, "\n"
);
+ seq_put
c(s, '\n'
);
}
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)
sync_timeline_list);
sync_print_obj(s, obj);
- seq_put
s(s, "\n"
);
+ seq_put
c(s, '\n'
);
}
spin_unlock_irqrestore(&sync_timeline_list_lock, flags);
@@
-173,7
+173,7
@@
static int sync_debugfs_show(struct seq_file *s, void *unused)
container_of(pos, struct sync_file, sync_file_list);
sync_print_sync_file(s, sync_file);
- seq_put
s(s, "\n"
);
+ seq_put
c(s, '\n'
);
}
spin_unlock_irqrestore(&sync_file_list_lock, flags);
return 0;