Skip to contentSkip to conversation

Fixing cpu_class_is_omap2() parentheses warning

PATCH In review Ragner Magalhaes 2 participants 2 messages Jun 25, 2007 – Jun 29, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fixing cpu_class_is_omap2() parentheses warning

From: Ragner Magalhaes <[email protected]>

Fixing the follow warning
arch/arm/plat-omap/usb.c: In function 'omap_usb0_init':
arch/arm/plat-omap/usb.c:136: warning: suggest parentheses around && within ||

---

 include/asm-arm/arch-omap/cpu.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/asm-arm/arch-omap/cpu.h +1 -1
index 4eea68b..b9399a8 100644
@@ -273,6 +273,6 @@ IS_OMAP_TYPE(3430, 0x3430)
 /* Macros to detect if we have OMAP1 or OMAP2 */
 #define cpu_class_is_omap1()	(cpu_is_omap730() || cpu_is_omap15xx() || \
 				cpu_is_omap16xx())
-#define cpu_class_is_omap2()	cpu_is_omap24xx() || cpu_is_omap34xx()
+#define cpu_class_is_omap2()	(cpu_is_omap24xx() || cpu_is_omap34xx())
 
 #endif
#1 lore raw
Quoted 17 lines · Ragner Magalhaes

From: Ragner Magalhaes <[email protected]>

Fixing the follow warning
arch/arm/plat-omap/usb.c: In function 'omap_usb0_init':
arch/arm/plat-omap/usb.c:136: warning: suggest parentheses around && within ||

---

 include/asm-arm/arch-omap/cpu.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/asm-arm/arch-omap/cpu.h +0 -0
index 4eea68b..b9399a8 100644

include/asm-arm/arch-omap/cpu.h IS_OMAP_TYPE(3430, 0x3430) · line 278

Quoted 7 lines
include/asm-arm/arch-omap/cpu.h +1 -1
@@ -273,6 +273,6 @@ IS_OMAP_TYPE(3430, 0x3430)
 /* Macros to detect if we have OMAP1 or OMAP2 */
 #define cpu_class_is_omap1()	(cpu_is_omap730() || cpu_is_omap15xx() || \
 				cpu_is_omap16xx())
-#define cpu_class_is_omap2()	cpu_is_omap24xx() || cpu_is_omap34xx()
+#define cpu_class_is_omap2()	(cpu_is_omap24xx() || cpu_is_omap34xx())
 
 #endif

Thanks, pushing today.

Tony