summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorSven Schnelle <svens@linux.ibm.com>2025-01-08 17:27:05 +0300
committerAlexander Gordeev <agordeev@linux.ibm.com>2025-01-13 11:50:18 +0300
commit4a0f62a3009be6515f5863970994a350a938ac52 (patch)
tree19a2d17407e3883e9bf8775f3827c3f88bcfea51 /tools/perf/scripts/python/gecko.py
parent94446b4dcbbee79ff18173435950b2d1a7513c1b (diff)
downloadlinux-4a0f62a3009be6515f5863970994a350a938ac52.tar.xz
s390/ebcdic: Fix length check in codepage_convert()
The current code compares whether the nr argument is less or equal to zero. As nr is of type unsigned long, this isn't correct. Fix this by just testing for zero. This is also reported by checkpatch: unsignedLessThanZero: Checking if unsigned expression 'nr--' is less than zero. Reported-by: Jens Remus <jremus@linux.ibm.com> Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions