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-07-10 08:41:03 -06:00
2025-04-11 12:16:44 -06:00
2025-07-22 11:30:14 -06:00
2025-08-25 16:20:48 +02:00
2025-06-02 17:26:16 -06:00
2025-08-06 08:41:30 +02:00
2025-04-11 12:16:44 -06:00
2025-08-25 16:20:48 +02:00
2025-07-29 16:44:58 +02:00
2025-07-30 14:55:17 +02:00
2025-06-25 13:42:04 -06:00
2025-04-11 12:16:44 -06:00