Skip to contentSkip to conversation

add parentheses

PATCH New Roel Kluin 1 participant 1 message Feb 2, 2008 Framebuffer layer

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 add parentheses

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

---

drivers/video/sis/sis_main.c +1 -1
index 93ae747..5b28fa2 100644
@@ -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");