From 17d22a0c0f77ce448a6efbafa17e55b335f9f169 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 6 Jan 2024 09:15:20 -0800 Subject: Fix -Wmisleading-indentation warning in chipsPreInitHiQV() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/ct_driver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3