Skip to contentSkip to conversation

omap: fix unlikely(x) < y

PATCH Tony Lindgren 1 participant 1 message Nov 18, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 3 lines · * [email protected] <[email protected]> [091117 14:39]:

From: Roel Kluin <[email protected]>

The closing parenthesis was not in the right location.

I've added this to omap-fixes and will send to Linus today along with few other fixes.

Andrew & Russell, please let me know if you have this already queued for Linus, and I'll drop it from my queue.

Regards,

Tony

Quoted 22 lines

---

 arch/arm/plat-omap/gpio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN arch/arm/plat-omap/gpio.c~omap-fix-unlikelyx-y arch/arm/plat-omap/gpio.c

arch/arm/plat-omap/gpio.c renamed from arch/arm/plat-omap/gpio.c~omap-fix-unlikelyx-y +1 -1
@@ -391,7 +391,7 @@ static inline int gpio_valid(int gpio)
 
 static int check_gpio(int gpio)
 {
-	if (unlikely(gpio_valid(gpio)) < 0) {
+	if (unlikely(gpio_valid(gpio) < 0)) {
 		printk(KERN_ERR "omap-gpio: invalid GPIO %d\n", gpio);
 		dump_stack();
 		return -1;

_