summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-06 09:15:20 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-06 09:15:20 -0800
commit17d22a0c0f77ce448a6efbafa17e55b335f9f169 (patch)
tree034166e6b822403818bc7c977256408aa8c6b751
parent3010ffc8ec8e989a2b6a258b25ae1ef6112e601f (diff)
Fix -Wmisleading-indentation warning in chipsPreInitHiQV()
ct_driver.c: In function ‘chipsPreInitHiQV’: ct_driver.c:1928:21: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1928 | if ((pMon = xf86PrintEDID(xf86DoEDID_DDC2(XF86_SCRN_ARG(pScrn), | ^~ ct_driver.c:1931:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1931 | xf86SetDDCproperties(pScrn,pMon); | ^~~~~~~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/ct_driver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ct_driver.c b/src/ct_driver.c
index 8efcf77..c183298 100644
--- a/src/ct_driver.c
+++ b/src/ct_driver.c
@@ -1926,9 +1926,10 @@ chipsPreInitHiQV(ScrnInfoPtr pScrn, int flags)
if (xf86LoadSubModule(pScrn, "i2c")) {
if (chips_i2cInit(pScrn)) {
if ((pMon = xf86PrintEDID(xf86DoEDID_DDC2(XF86_SCRN_ARG(pScrn),
- cPtr->I2C))) != NULL)
+ cPtr->I2C))) != NULL) {
ddc_done = TRUE;
xf86SetDDCproperties(pScrn,pMon);
+ }
}
}
if (!ddc_done)