diff options
author | 2025-01-16 16:11:29 +0800 | |
---|---|---|
committer | 2025-01-20 14:13:22 +0200 | |
commit | ff44b1ca889f9ddc401daf375f8ee15a16f6d394 (patch) | |
tree | ba6b6a9f82f34e668a8b920b71fa188f22544d0b /net/lapb/lapb_timer.c | |
parent | platform/mellanox: mlxreg-hotplug: use sysfs_emit() instead of sprintf() (diff) | |
download | wireguard-linux-ff44b1ca889f9ddc401daf375f8ee15a16f6d394.tar.xz wireguard-linux-ff44b1ca889f9ddc401daf375f8ee15a16f6d394.zip |
platform/mellanox: mlxreg-io: use sysfs_emit() instead of sprintf()
Follow the advice in Documentation/filesystems/sysfs.rst:
show() should only use sysfs_emit() or sysfs_emit_at() when formatting
the value to be returned to user space.
Signed-off-by: Ai Chao <aichao@kylinos.cn>
Acked-by: Vadim Pasternak <vadimp@nvidia.com>
Link: https://lore.kernel.org/r/20250116081129.2902274-1-aichao@kylinos.cn
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions