Coverity #1011: Remove a useless NULL check on a pVbe that had been

dereferenced many times before.
This commit is contained in:
Eric Anholt 2006-03-10 08:06:42 +00:00
parent 1bc72dce5f
commit ffdbb547be
2 changed files with 7 additions and 1 deletions

View File

@ -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> 2006-03-09 Eric Anholt <anholt@FreeBSD.org>
* hw/xfree86/int10/generic.c: (xf86ExtendedInitInt10): * hw/xfree86/int10/generic.c: (xf86ExtendedInitInt10):

View File

@ -181,7 +181,7 @@ vbeProbeDDC(vbeInfoPtr pVbe)
char *ddc_level; char *ddc_level;
int screen = pVbe->pInt10->scrnIndex; int screen = pVbe->pInt10->scrnIndex;
if (!pVbe || (pVbe->ddc == DDC_NONE)) if (pVbe->ddc == DDC_NONE)
return FALSE; return FALSE;
if (pVbe->ddc != DDC_UNCHECKED) if (pVbe->ddc != DDC_UNCHECKED)
return TRUE; return TRUE;