diff options
author | Ye Guojin <ye.guojin@zte.com.cn> | 2021-10-18 09:17:50 +0000 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2021-10-19 17:18:37 +0200 |
commit | 33ce79be2784bb7c327ef0f3be184936238c91d3 (patch) | |
tree | 6ae9b635c4d527fa586a1b22714a67152cade50f /drivers/staging | |
parent | 2d5b0755b754fcb39598df87b3a8656a569e9979 (diff) |
platform/x86: thinkpad_acpi: Fix coccinelle warnings
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/20211018091750.858826-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/staging')
0 files changed, 0 insertions, 0 deletions