diff options
author | Yang Guang <yang.guang5@zte.com.cn> | 2022-01-27 03:02:36 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-01-27 17:05:35 +0300 |
commit | e2cf07654efb0fd7bbcb475c6f74be7b5755a8fd (patch) | |
tree | f0b601f846d27ddb01bf61448858e7aee7cf5758 /scripts | |
parent | c217ab7a3961df568233faf485ac67aea1f8c5cb (diff) | |
download | linux-e2cf07654efb0fd7bbcb475c6f74be7b5755a8fd.tar.xz |
ptp: replace snprintf with sysfs_emit
coccinelle report:
./drivers/ptp/ptp_sysfs.c:17:8-16:
WARNING: use scnprintf or sprintf
./drivers/ptp/ptp_sysfs.c:390:8-16:
WARNING: use scnprintf or sprintf
Use sysfs_emit instead of scnprintf or sprintf makes more sense.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Yang Guang <yang.guang5@zte.com.cn>
Signed-off-by: David Yang <davidcomponentone@gmail.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions