]> git.baikalelectronics.ru Git - kernel.git/commit
ath5k: replace snprintf in show functions with sysfs_emit
authorQing Wang <wangqing@vivo.com>
Wed, 13 Oct 2021 03:27:31 +0000 (20:27 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 18 Oct 2021 12:33:42 +0000 (15:33 +0300)
commit9bc301deba7aca660545d4e86dd8d19b28890b84
treea64a86ec42371417afc997f83c54efb1940becda
parentb6c7fb4def584630a776f72209bcc2c7c9635bb5
ath5k: replace snprintf in show functions with sysfs_emit

coccicheck complains about the use of snprintf() in sysfs show functions.

Fix the coccicheck warning:
WARNING: use scnprintf or sprintf.

Use sysfs_emit instead of scnprintf or sprintf makes more sense.

Signed-off-by: Qing Wang <wangqing@vivo.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1634095651-4273-1-git-send-email-wangqing@vivo.com
drivers/net/wireless/ath/ath5k/sysfs.c