diff options
author | Markus Elfring <Markus.Elfring@web.de> | 2023-04-15 21:48:47 +0200 |
---|---|---|
committer | Karol Herbst <kherbst@redhat.com> | 2023-04-17 19:08:03 +0200 |
commit | df8133d0c3e53e98df3c78c30f31530f580f1bce (patch) | |
tree | 3f319c8ab7908eaf2e030bbdc0f97ef26fdfc635 /drivers/gpu/drm/nouveau | |
parent | drm/nouveau/debugfs: Move a variable assignment behind a null pointer check i... (diff) | |
download | linux-df8133d0c3e53e98df3c78c30f31530f580f1bce.tar.xz linux-df8133d0c3e53e98df3c78c30f31530f580f1bce.zip |
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 <elfring@users.sourceforge.net>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/e6f9b34e-58d9-b1aa-8b12-8d4a55153d1d@web.de
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_debugfs.c b/drivers/gpu/drm/nouveau/nouveau_debugfs.c index a859a086f308..13c82eea8828 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; |