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:
Alan Coopersmith
2025-07-27 13:58:38 -07:00
committed by Enrico Weigelt, metux IT consult
parent 53c78493f6
commit 4337e65465

View File

@@ -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;