From: Eric Sesterhenn Date: Fri, 20 Oct 2006 21:35:59 +0000 (-0700) Subject: Remove unnecessary check in drivers/video/intelfb/intelfbhw.c X-Git-Tag: v2.6.19-rc4~87^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f84fcb06a1f7ab4ac0444ece82b25b0701369641;p=linux-2.6-omap-h63xx.git Remove unnecessary check in drivers/video/intelfb/intelfbhw.c All callers and the function itself dereference dinfo, so we can remove the check. (coverity id #1371) Signed-off-by: Eric Sesterhenn Signed-off-by: Andrew Morton Signed-off-by: Dave Airlie --- diff --git a/drivers/video/intelfb/intelfbhw.c b/drivers/video/intelfb/intelfbhw.c index eae60f97e26..a95836839e1 100644 --- a/drivers/video/intelfb/intelfbhw.c +++ b/drivers/video/intelfb/intelfbhw.c @@ -664,7 +664,7 @@ intelfbhw_print_hw_state(struct intelfb_info *dinfo, struct intelfb_hwstate *hw) 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");