diff options
author | Ye Guojin <ye.guojin@zte.com.cn> | 2021-10-22 11:07:22 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2021-10-22 11:13:14 +0200 |
commit | 21d91e20793ddac46d61d56e5304825a2897553a (patch) | |
tree | 2d21074421a75807cf7531040b4c366909fd6c1b /kernel/kheaders.c | |
parent | docs: ABI: fix documentation warning in sysfs-driver-mlxreg-io (diff) | |
download | linux-21d91e20793ddac46d61d56e5304825a2897553a.tar.xz linux-21d91e20793ddac46d61d56e5304825a2897553a.zip |
platform/x86: lg-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/20211022090722.1065457-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 'kernel/kheaders.c')
0 files changed, 0 insertions, 0 deletions