diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2021-05-17 20:54:11 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-05-18 08:24:46 +0200 |
commit | 3a46295135e5d2905f36f5986e81b4ac475e3f70 (patch) | |
tree | 4df30b6e9d5cb39e93bac9ddea8471e76c58a2e0 /arch | |
parent | 03fd272b51a001f4ac3ad2f413c5cded2a496d3d (diff) | |
download | barebox-3a46295135e5d2905f36f5986e81b4ac475e3f70.tar.gz barebox-3a46295135e5d2905f36f5986e81b4ac475e3f70.tar.xz |
ARM: socfpga: Fix timeout tests
A timeout is never detected as timeout is tested for being smaller than
0 which never happens for an unsigned variable. Change to a signed type.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://lore.barebox.org/20210517185424.32145-3-s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-socfpga/arria10-xload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-socfpga/arria10-xload.c b/arch/arm/mach-socfpga/arria10-xload.c index 6f137e300e..e52fd1ed87 100644 --- a/arch/arm/mach-socfpga/arria10-xload.c +++ b/arch/arm/mach-socfpga/arria10-xload.c @@ -136,7 +136,7 @@ static int a10_fpga_init(void *buf) { uint32_t stat, mask; uint32_t val; - uint32_t timeout; + int timeout; val = CFGWDTH_32 << A10_FPGAMGR_IMGCFG_CTL_02_CFGWIDTH_SHIFT; a10_update_bits(A10_FPGAMGR_IMGCFG_CTL_02_OFST, |