summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--hw/xfree86/vbe/vbe.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 883a9f2ec..9a7876bce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-03-10 Eric Anholt <anholt@FreeBSD.org>
+
+ * hw/xfree86/vbe/vbe.c: (vbeProbeDDC):
+ Coverity #1011: Remove a useless NULL check on a pVbe that had
+ been dereferenced many times before.
+
2006-03-09 Eric Anholt <anholt@FreeBSD.org>
* hw/xfree86/int10/generic.c: (xf86ExtendedInitInt10):
diff --git a/hw/xfree86/vbe/vbe.c b/hw/xfree86/vbe/vbe.c
index 521deb479..7528ad164 100644
--- a/hw/xfree86/vbe/vbe.c
+++ b/hw/xfree86/vbe/vbe.c
@@ -181,7 +181,7 @@ vbeProbeDDC(vbeInfoPtr pVbe)
char *ddc_level;
int screen = pVbe->pInt10->scrnIndex;
- if (!pVbe || (pVbe->ddc == DDC_NONE))
+ if (pVbe->ddc == DDC_NONE)
return FALSE;
if (pVbe->ddc != DDC_UNCHECKED)
return TRUE;