Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/dp_mst: Simplify character output in drm_dp_mst_dump_topology()

Single characters should be put into a sequence.
Thus use the corresponding function “seq_putc” for one selected call.

This issue was transformed by using the Coccinelle software.

Suggested-by: Christophe Jaillet <christophe.jaillet@wanadoo.fr>
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/af602b2e-4d92-4c54-9884-7db84700aa93@web.de

authored by

Markus Elfring and committed by
Lyude Paul
19cc4b7d 1fb4dcee

+1 -1
+1 -1
drivers/gpu/drm/display/drm_dp_mst_topology.c
··· 4963 4963 seq_printf(m, "branch oui: %*phN devid: ", 3, buf); 4964 4964 4965 4965 for (i = 0x3; i < 0x8 && buf[i]; i++) 4966 - seq_printf(m, "%c", buf[i]); 4966 + seq_putc(m, buf[i]); 4967 4967 seq_printf(m, " revision: hw: %x.%x sw: %x.%x\n", 4968 4968 buf[0x9] >> 4, buf[0x9] & 0xf, buf[0xa], buf[0xb]); 4969 4969 if (dump_dp_payload_table(mgr, buf))