[PATCH 10/15] ARM: phytec-phycard-omap3: Fix checking of unsigned variable being negative
Sascha Hauer
s.hauer at pengutronix.de
Mon May 17 11:54:19 PDT 2021
'char' can be unsigned, make it signed explicitly to let the check for
being smaller than 0 work..
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
arch/arm/boards/phytec-phycard-omap3/lowlevel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boards/phytec-phycard-omap3/lowlevel.c b/arch/arm/boards/phytec-phycard-omap3/lowlevel.c
index 54d8eaaddf..546fa78735 100644
--- a/arch/arm/boards/phytec-phycard-omap3/lowlevel.c
+++ b/arch/arm/boards/phytec-phycard-omap3/lowlevel.c
@@ -98,7 +98,7 @@ static void config_sdram_ddr(u8 cs, u8 cfg)
static void pcaal1_sdrc_init(void)
{
u32 test0, test1;
- char cfg;
+ signed char cfg;
init_sdram_ddr();
--
2.29.2
More information about the barebox
mailing list