diff options
author | Li Zhijian <lizhijian@fujitsu.com> | 2024-01-16 07:51:36 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2024-01-30 04:40:49 +0300 |
commit | 5fbf37e53091057fc53f1046ded8a967464c2ecf (patch) | |
tree | f2ea46ca88fd09f0a8cd2194bc4892b626e8ae47 /drivers/ufs/core | |
parent | 01105c23de4263559919dd44e6ffc557fd261f0f (diff) | |
download | linux-5fbf37e53091057fc53f1046ded8a967464c2ecf.tar.xz |
scsi: isci: Convert snprintf() to sysfs_emit()
Per filesystems/sysfs.rst, show() should only use sysfs_emit() or
sysfs_emit_at() when formatting the value to be returned to user space.
coccinelle complains that there are still a couple of functions that use
snprintf(). Convert them to sysfs_emit().
> ./drivers/scsi/isci/init.c:140:8-16: WARNING: please use sysfs_emit
No functional change intended
CC: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
CC: James E.J. Bottomley <jejb@linux.ibm.com>
CC: Martin K. Petersen <martin.petersen@oracle.com>
CC: linux-scsi@vger.kernel.org
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Link: https://lore.kernel.org/r/20240116045151.3940401-25-lizhijian@fujitsu.com
Reviewed-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/ufs/core')
0 files changed, 0 insertions, 0 deletions