drivers core: Remove strcat uses around sysfs_emit and neaten
authorJoe Perches <joe@perches.com>
Wed, 16 Sep 2020 20:40:40 +0000 (13:40 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Oct 2020 11:09:10 +0000 (13:09 +0200)
commit973c39115cb308b6b1fe64b4f342996f3eef06d0
treeea2fbd252ceebb4299ea0c03b42929464232adc0
parentaa838896d87af561a33ecefea1caa4c15a68bc47
drivers core: Remove strcat uses around sysfs_emit and neaten

strcat is no longer necessary for sysfs_emit and sysfs_emit_at uses.

Convert the strcat uses to sysfs_emit calls and neaten other block
uses of direct returns to use an intermediate const char *.

Signed-off-by: Joe Perches <joe@perches.com>
Link: https://lore.kernel.org/r/5d606519698ce4c8f1203a2b35797d8254c6050a.1600285923.git.joe@perches.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/cacheinfo.c
drivers/base/core.c
drivers/base/memory.c
drivers/base/power/sysfs.c