Skip to content

Commit

Permalink
Remove unnecessary check in drivers/video/intelfb/intelfbhw.c
Browse files Browse the repository at this point in the history
All callers and the function itself dereference dinfo, so we can remove the
check.  (coverity id #1371)

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
  • Loading branch information
Eric Sesterhenn authored and Dave Airlie committed Oct 25, 2006
1 parent a77b895 commit f84fcb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/intelfb/intelfbhw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit f84fcb0

Please sign in to comment.