kernel_optimize_test/drivers/usb/atm
Alex Dewar cb06b385d5 usb: atm: don't use snprintf() for sysfs attrs
kernel/cpu.c: don't use snprintf() for sysfs attrs

As per the documentation (Documentation/filesystems/sysfs.rst),
snprintf() should not be used for formatting values returned by sysfs.

In all of these cases, sprintf() suffices as we know that the formatted
strings will be less than PAGE_SIZE in length.

Issue identified by Coccinelle.

Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
Link: https://lore.kernel.org/r/20200824222322.22962-1-alex.dewar90@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-08-25 19:11:18 +02:00
..
cxacru.c usb: atm: don't use snprintf() for sysfs attrs 2020-08-25 19:11:18 +02:00
Kconfig usb: remove redundant 'default n' from Kconfig-s 2019-05-21 10:06:22 +02:00
Makefile
speedtch.c
ueagle-atm.c usb: atm: ueagle-atm: Demote obvious misuse of kerneldoc to standard comment blocks 2020-07-09 16:46:57 +02:00
usbatm.c usb: atm: convert tasklets to use new tasklet_setup() API 2020-08-18 13:00:00 +02:00
usbatm.h USB: atm: Use the correct style for SPDX License Identifier 2020-03-17 20:03:28 +01:00
xusbatm.c