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)
commit65b4b8aa0f59ec34508b262cdd0f8d731a09a074
treea64a86ec42371417afc997f83c54efb1940becda
parent0a491167fe0cf9f26062462de2a8688b96125d48
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