mirror of
https://github.com/X11Libre/xf86-video-vesa.git
synced 2026-03-24 01:25:22 +00:00
VESAValidMode: remove duplicate call to VESAGetRec
Found by cppcheck:
src/vesa.c:356:11: style: Redundant initialization for 'pVesa'. The initialized value is overwritten before it is read. [redundantInitialization]
pVesa = VESAGetRec(pScrn);
^
src/vesa.c:350:19: note: pVesa is initialized
VESAPtr pVesa = VESAGetRec(pScrn);
^
src/vesa.c:356:11: note: pVesa is overwritten
pVesa = VESAGetRec(pScrn);
^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
@@ -353,8 +353,6 @@ VESAValidMode(SCRN_ARG_TYPE arg, DisplayModePtr p, Bool flag, int pass)
|
||||
DisplayModePtr mode;
|
||||
float v;
|
||||
|
||||
pVesa = VESAGetRec(pScrn);
|
||||
|
||||
if (pass != MODECHECK_FINAL) {
|
||||
if (!warned) {
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "VESAValidMode called unexpectedly\n");
|
||||
|
||||
Reference in New Issue
Block a user