summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorEverest K.C <everestkc@everestkc.com.np>2024-10-18 10:23:10 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-05 14:01:18 +0100
commit3b2e23eaed1ec5be50c15d5820c7fb78cbd31a56 (patch)
treeb7739b3e4462ae5c47994265335a9a0d3c32b702 /scripts/stackusage
parent7ddab756f2de5b7b43c122ebebdf37f400fb2b6f (diff)
downloadlinux-3b2e23eaed1ec5be50c15d5820c7fb78cbd31a56.tar.gz
linux-3b2e23eaed1ec5be50c15d5820c7fb78cbd31a56.tar.bz2
linux-3b2e23eaed1ec5be50c15d5820c7fb78cbd31a56.zip
crypto: cavium - Fix the if condition to exit loop after timeout
[ Upstream commit 53d91ca76b6c426c546542a44c78507b42008c9e ] The while loop breaks in the first run because of incorrect if condition. It also causes the statements after the if to appear dead. Fix this by changing the condition from if(timeout--) to if(!timeout--). This bug was reported by Coverity Scan. Report: CID 1600859: (#1 of 1): Logically dead code (DEADCODE) dead_error_line: Execution cannot reach this statement: udelay(30UL); Fixes: 9e2c7d99941d ("crypto: cavium - Add Support for Octeon-tx CPT Engine") Signed-off-by: Everest K.C. <everestkc@everestkc.com.np> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions