All of lore.kernel.org
 help / color / mirror / Atom feed
* [ patch -mm1 08/11 ] gpio-patchset-fixups:  make precedence explicit
@ 2006-06-22 18:54 Jim Cromie
  0 siblings, 0 replies; only message in thread
From: Jim Cromie @ 2006-06-22 18:54 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux kernel


diff.16-fix-explicit-precedence

make evaluation explicit, rather than relying on precedence.

Signed-off-by:   Jim Cromie <jim.cromie@gmail.com>

---

diff -ruNp -X dontdiff -X exclude-diffs 17-mm-pre0/drivers/char/pc8736x_gpio.c 16-precedence/drivers/char/pc8736x_gpio.c
--- 17-mm-pre0/drivers/char/pc8736x_gpio.c	2006-06-20 20:42:39.000000000 -0600
+++ 16-precedence/drivers/char/pc8736x_gpio.c	2006-06-21 09:28:49.000000000 -0600
@@ -204,7 +204,7 @@ static int pc8736x_gpio_current(unsigned
 	minor &= 0x1f;
 	port = minor >> 3;
 	bit = minor & 7;
-	return pc8736x_gpio_shadow[port] >> bit & 0x01;
+	return ((pc8736x_gpio_shadow[port] >> bit) & 0x01);
 }
 
 static void pc8736x_gpio_change(unsigned index)



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-22 18:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-22 18:54 [ patch -mm1 08/11 ] gpio-patchset-fixups: make precedence explicit Jim Cromie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.