net: mvpp2: Fix impossible test
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 5 Aug 2025 14:18:16 +0000 (15:18 +0100)
committerJerome Forissier <jerome.forissier@linaro.org>
Mon, 18 Aug 2025 13:47:57 +0000 (15:47 +0200)
commitb24c89affd9063c3f9f3ca99db075bd3bb1fc4b2
tree0c9aac75680355252ab29a60d4aa9008ba0b9b23
parent34bc71f2db6bcd83b718ac9c28c39bd7d788a356
net: mvpp2: Fix impossible test

You cannot test an unsigned char to be >= 256. Instead make the
variables start and end to be ints.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/net/mvpp2.c