mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-07 23:02:23 +00:00
Coverity #1011: Remove a useless NULL check on a pVbe that had been
dereferenced many times before.
This commit is contained in:
parent
1bc72dce5f
commit
ffdbb547be
2 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue