All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [video/sis/sis_main.c] add parentheses
@ 2008-02-02 20:04 Roel Kluin
  0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2008-02-02 20:04 UTC (permalink / raw)
  To: thomas; +Cc: lkml

'!' has a higher priority than '&': bitanding has no effect.

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
---
diff --git a/drivers/video/sis/sis_main.c b/drivers/video/sis/sis_main.c
index 93ae747..5b28fa2 100644
--- a/drivers/video/sis/sis_main.c
+++ b/drivers/video/sis/sis_main.c
@@ -427,7 +427,7 @@ sisfb_interpret_edid(struct sisfb_monitor *monitor, u8 *buffer)
 
 	monitor->feature = buffer[0x18];
 
-	if(!buffer[0x14] & 0x80) {
+	if(!(buffer[0x14] & 0x80)) {
 		if(!(buffer[0x14] & 0x08)) {
 			printk(KERN_INFO
 				"sisfb: WARNING: Monitor does not support separate syncs\n");


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

only message in thread, other threads:[~2008-02-02 20:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-02 20:04 [PATCH] [video/sis/sis_main.c] add parentheses Roel Kluin

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.