summaryrefslogtreecommitdiff
path: root/drivers/fpga/stratixv.c
diff options
context:
space:
mode:
authorAndrew Goodbody <andrew.goodbody@linaro.org>2025-08-06 10:37:26 +0100
committerJerome Forissier <jerome.forissier@linaro.org>2025-08-18 14:08:57 +0200
commit4b2d64f3885a83fd001993785f74f70cc6045acc (patch)
treeb5260a7e3064ae4e4a38c25f3e0e717a6e37dfd3 /drivers/fpga/stratixv.c
parent0ce7fef9e2154d188bd50ae687fb666faac8fe7b (diff)
net: phy: vitesse: Fix incorrect test for timeout
In vsc8514_config there is a while loop for detecting a config failure using a timeout counter with a post-decrement. In the case of a timeout this will result in the loop exiting with timeout == -1 so use that as the test below the loop to detect that the timeout occurred. This issue was found by Smatch. Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org> Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Diffstat (limited to 'drivers/fpga/stratixv.c')
0 files changed, 0 insertions, 0 deletions