diff options
author | Eric Anholt <anholt@freebsd.org> | 2006-03-10 08:06:42 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2006-03-10 08:06:42 +0000 |
commit | ffdbb547becc71f1cfdd035d0d6c71539f185fb1 (patch) | |
tree | d45387f23781577222f9939118b1f873260f03e1 /hw/xfree86/vbe/vbe.c | |
parent | 1bc72dce5f8bc40e369e69b684816fdaaa07da43 (diff) |
Coverity #1011: Remove a useless NULL check on a pVbe that had been
dereferenced many times before.
Diffstat (limited to 'hw/xfree86/vbe/vbe.c')
-rw-r--r-- | hw/xfree86/vbe/vbe.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |