mirror of
https://github.com/X11Libre/xf86-video-ast.git
synced 2026-03-24 01:24:41 +00:00
bGetAST1000VGAModeInfo: Fix misleading indentation
ast_mode.c: In function ‘bGetAST1000VGAModeInfo’:
ast_mode.c:647:9: warning: this ‘if’ clause does not guard...
[-Wmisleading-indentation]
647 | if (loop->ulRefreshRate <= ulRefreshRate
| ^~
ast_mode.c:650:25: note: ...this statement, but the latter is
misleadingly indented as if it were guarded by the ‘if’
650 | loop++;
| ^~~~
Fixes: 77e7ac3 ("use same search mode criteria with ast drm driver")
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ast/-/merge_requests/15>
This commit is contained in:
committed by
Enrico Weigelt, metux IT consult
parent
53c78493f6
commit
4337e65465
@@ -644,10 +644,10 @@ static Bool bGetAST1000VGAModeInfo(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIO
|
||||
loop++;
|
||||
continue;
|
||||
}
|
||||
if (loop->ulRefreshRate <= ulRefreshRate
|
||||
if (loop->ulRefreshRate <= ulRefreshRate
|
||||
&& (!best || loop->ulRefreshRate > best->ulRefreshRate))
|
||||
best = loop;
|
||||
loop++;
|
||||
loop++;
|
||||
}
|
||||
if (best || !check_sync)
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user