Skip to content

Commit dd16129

Browse files
cristibirsanbala-gunasundar
authored andcommitted
media: platform: dwc: fix misleading indentation
This patch fixes the misleading indentation warning on GCC 11+: drivers/media/platform/dwc/dw-csi-plat.c: In function ‘dw_csi_probe’: drivers/media/platform/dwc/dw-csi-plat.c:541:9: error: this ‘else’ clause does not guard... [-Werror=misleading-indentation] 541 | else | ^~~~ drivers/media/platform/dwc/dw-csi-plat.c:544:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ 544 | goto end; | ^~~~ Fixes: 11bcf7b ("media: platform: dwc: Add MIPI CSI-2 controller driver") Signed-off-by: Cristian Birsan <cristian.birsan@microchip.com>
1 parent 706a565 commit dd16129

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/media/platform/dwc/dw-csi-plat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,8 @@ static int dw_csi_probe(struct platform_device *pdev)
538538
if (ret) {
539539
if (dev->of_node)
540540
dev_err(dev, "irq csi %s failed\n", of_id->name);
541-
else
542-
dev_err(dev, "irq csi %d failed\n", pdata->id);
541+
else
542+
dev_err(dev, "irq csi %d failed\n", pdata->id);
543543

544544
goto end;
545545
}

0 commit comments

Comments
 (0)