aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2023-10-23 19:33:17 +0000
committerRafael J. Wysocki <[email protected]>2023-10-24 19:31:26 +0000
commitbc8f7abe97159ee68106e5a99d5fc242cd01f150 (patch)
tree6fd65e73c07fd1d44b51f58da5425fed1a4de8bc /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parentACPI: sysfs: Fix create_pnp_modalias() and create_of_modalias() (diff)
downloadkernel-bc8f7abe97159ee68106e5a99d5fc242cd01f150.tar.gz
kernel-bc8f7abe97159ee68106e5a99d5fc242cd01f150.zip
ACPI: sysfs: Clean up create_pnp_modalias() and create_of_modalias()
'modalias' is only written with snprintf() and it is already guaranteed to be nul-terminated, so remove the unneeded (but harmless) writes of a trailing '\0' to it. Also snprintf() never returns negative values, so remove redundant (but harmless) checks for it. Signed-off-by: Christophe JAILLET <[email protected]> [ rjw: Merge two patches into one, combine changelogs, add subject ] Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions