Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5f70b67 authored by Christian Hitz's avatar Christian Hitz Committed by Nicolas Ferre
Browse files

ARM: at91: fix NAND bus width decoding from system_rev



Make it is safe to assign the return value of this function
to u8/u16 variables.

Signed-off-by: default avatarChristian Hitz <christian.hitz@aizo.com>
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
parent caca6a03
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@
#define BOARD_HAVE_NAND_16BIT	(1 << 31)
static inline int board_have_nand_16bit(void)
{
	return system_rev & BOARD_HAVE_NAND_16BIT;
	return (system_rev & BOARD_HAVE_NAND_16BIT) ? 1 : 0;
}

#endif /* __ARCH_SYSTEM_REV_H__ */