Skip to contentSkip to conversation

Remove unnecessary check in drivers/video/intelfb/intelfbhw.c

PATCH New Eric Sesterhenn 1 participant 1 message Sep 27, 2006 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove unnecessary check in drivers/video/intelfb/intelfbhw.c

hi,

all callers and the function itself dereference dinfo, so we can remove the check. (coverity id #1371)

drivers/video/intelfb/intelfbhw.c renamed from drivers/video/intelfb/intelfbhw.c.orig +1 -1
@@ -648,7 +648,7 @@ intelfbhw_print_hw_state(struct intelfb_
 	int index = dinfo->pll_index;
 	DBG_MSG("intelfbhw_print_hw_state\n");
 
-	if (!hw || !dinfo)
+	if (!hw)
 		return;
 	/* Read in as much of the HW state as possible. */
 	printk("hw state dump start\n");