diff options
author | Andrew Goodbody <andrew.goodbody@linaro.org> | 2025-08-18 10:24:36 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@amd.com> | 2025-08-25 16:20:48 +0200 |
commit | 88e3524393fa88dbf675119aa89885bf144592ec (patch) | |
tree | c83761e86436a7197bbc8077f94bef834bebaa10 /drivers/spi/atmel-quadspi.c | |
parent | 0109a7de96c64f5d4096652c36d7b6023b0f1737 (diff) |
net: axi_emac: Fix timeout test
The timeout test in axi_dma_init is not correct due to the
post-decrement used on the timeout variable which will mean timeout is
not 0 if the timeout occurs. Make the timeout variable an int instead of
a u32 and then test for timeout being -1.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Link: https://lore.kernel.org/r/20250806-net_xilinx_axi-v2-1-6311cf59451d@linaro.org
Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'drivers/spi/atmel-quadspi.c')
0 files changed, 0 insertions, 0 deletions