Andrew Goodbody 88e3524393 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>
2025-08-25 16:20:48 +02:00
..
2025-05-05 14:16:50 -06:00
2025-05-05 14:16:50 -06:00
2022-12-07 16:04:17 -05:00
2025-08-01 09:30:47 +02:00
2022-11-28 10:25:17 -05:00
2024-07-22 10:53:05 -06:00
2025-08-01 09:30:47 +02:00
2022-12-22 10:31:48 -05:00
2025-05-04 20:25:03 +02:00
2025-08-06 16:52:27 +02:00
2025-07-10 19:26:55 +02:00
2024-01-29 22:35:02 -05:00