aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorSven Schnelle <[email protected]>2025-01-08 14:27:05 +0000
committerAlexander Gordeev <[email protected]>2025-01-13 08:50:18 +0000
commit4a0f62a3009be6515f5863970994a350a938ac52 (patch)
tree19a2d17407e3883e9bf8775f3827c3f88bcfea51 /tools/testing/selftests/net/lib/py/utils.py
parents390/ebcdic: Use exrl instead of ex (diff)
downloadkernel-4a0f62a3009be6515f5863970994a350a938ac52.tar.gz
kernel-4a0f62a3009be6515f5863970994a350a938ac52.zip
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 <[email protected]> Signed-off-by: Sven Schnelle <[email protected]> Reviewed-by: Heiko Carstens <[email protected]> Signed-off-by: Alexander Gordeev <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions