mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [Patch] Remove unnecessary check in drivers/video/intelfb/intelfbhw.c
@ 2006-09-27 22:46 Eric Sesterhenn
  0 siblings, 0 replies; only message in thread
From: Eric Sesterhenn @ 2006-09-27 22:46 UTC (permalink / raw)
  To: linux-kernel; +Cc: sylvain.meyer

hi,

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>

--- linux-2.6.18-git7/drivers/video/intelfb/intelfbhw.c.orig	2006-09-27 21:47:46.000000000 +0200
+++ linux-2.6.18-git7/drivers/video/intelfb/intelfbhw.c	2006-09-27 21:48:04.000000000 +0200
@@ -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");



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

only message in thread, other threads:[~2006-09-27 22:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-27 22:46 [Patch] Remove unnecessary check in drivers/video/intelfb/intelfbhw.c Eric Sesterhenn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®