bus: mhi: replace snprintf with sysfs_emit
authorWan Jiabing <wanjiabing@vivo.com>
Tue, 26 Apr 2022 12:58:59 +0000 (20:58 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 May 2022 13:41:01 +0000 (15:41 +0200)
commit249369e93121306ccf0e1365fc5b2ecc6c8618ab
tree698153821f1d5182e9c06f07fa7dbd4a72772f2d
parent77acbdc0f314b7040afcc02be267fe71161f4ac7
bus: mhi: replace snprintf with sysfs_emit

Fix following coccicheck warning:
./drivers/bus/mhi/host/init.c:89:8-16: WARNING: use scnprintf or sprintf

Use sysfs_emit and sysfs_emit_at instead of snprintf.

Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
Link: https://lore.kernel.org/r/20220426125902.681258-1-wanjiabing@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/mhi/host/init.c