summaryrefslogtreecommitdiff
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2026-05-30 22:45:48 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2026-06-02 04:52:12 +0300
commit1b6f03b7ae9ee27054c55bb55a69d05555a78516 (patch)
treea80285dc889bcfa0d9d3e1925904437ff96e3453 /scripts/checkpatch.pl
parent056fca1f276fa41792838d5eb88e316dd81c982d (diff)
downloadlinux-1b6f03b7ae9ee27054c55bb55a69d05555a78516.tar.xz
scsi: pm8001: Fix error code in non_fatal_log_show()
The non_fatal_log_show() function is supposed to return negative error codes on failure. But because the error codes are saved in a u32 and then cast to signed long, they end up being high positive values instead of negative. Remove the intermediary u32 variable to fix this bug. Fixes: dba2cc03b9db ("scsi: pm80xx: sysfs attribute for non fatal dump") Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-by: Jack Wang <jinpu.wang@ionos.com> Link: https://patch.msgid.link/ahs-bEsBJH0KhnsX@stanley.mountain Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions