diff options
| author | 2021-10-22 09:08:51 +0000 | |
|---|---|---|
| committer | 2021-10-22 11:13:25 +0200 | |
| commit | c4b9ad6bf99007f67a4d0bbd83fd15d1bdd0222f (patch) | |
| tree | f93cc784d2e79e1690d3bd7d8ac6a941c412181f /drivers/platform/x86/amd-pmc.c | |
| parent | platform/x86: lg-laptop: replace snprintf in show functions with sysfs_emit (diff) | |
| download | wireguard-linux-c4b9ad6bf99007f67a4d0bbd83fd15d1bdd0222f.tar.xz wireguard-linux-c4b9ad6bf99007f67a4d0bbd83fd15d1bdd0222f.zip | |
platform/x86: sony-laptop: replace snprintf in show functions with sysfs_emit
coccicheck complains about the use of snprintf() in sysfs show
functions:
WARNING use scnprintf or sprintf
Use sysfs_emit instead of scnprintf or sprintf makes more sense.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Ye Guojin <ye.guojin@zte.com.cn>
Link: https://lore.kernel.org/r/20211022090851.1065538-1-ye.guojin@zte.com.cn
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform/x86/amd-pmc.c')
0 files changed, 0 insertions, 0 deletions
