From: Markus Elfring Date: Sat, 15 Apr 2023 19:48:47 +0000 (+0200) Subject: drm/nouveau/debugfs: Use seq_putc() in nouveau_debugfs_pstate_get() X-Git-Tag: v6.5-rc1~153^2~16^2~118 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=df8133d0c3e53e98df3c78c30f31530f580f1bce;p=thirdparty%2Flinux.git drm/nouveau/debugfs: Use seq_putc() in nouveau_debugfs_pstate_get() 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. Signed-off-by: Markus Elfring Reviewed-by: Karol Herbst Signed-off-by: Karol Herbst Link: https://patchwork.freedesktop.org/patch/msgid/e6f9b34e-58d9-b1aa-8b12-8d4a55153d1d@web.de --- diff --git a/drivers/gpu/drm/nouveau/nouveau_debugfs.c b/drivers/gpu/drm/nouveau/nouveau_debugfs.c index a859a086f308c..13c82eea88286 100644 --- a/drivers/gpu/drm/nouveau/nouveau_debugfs.c +++ b/drivers/gpu/drm/nouveau/nouveau_debugfs.c @@ -132,7 +132,7 @@ nouveau_debugfs_pstate_get(struct seq_file *m, void *data) seq_printf(m, " DC"); } - seq_printf(m, "\n"); + seq_putc(m, '\n'); } return 0;