aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-02-27 20:56:16 +0000
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-06-27 08:39:50 +0100
commitfd83ef8f8e59053c0b5b2b847d0357589d4c35bd (patch)
treeda935702b6a4e2a1b93063823ca0a240698f8c6a
parent34098a83de352cf82759f76dff0a75c3486b5fa8 (diff)
media: rkisp1: Drop parentheses and fix indentation in rkisp1_probe()
Fix a small indentation issue to increase code readability, and drop unneeded parentheses. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Ricardo Ribalda <ribalda@chromium.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
-rw-r--r--drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c b/drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c
index c7ad1986e67b..97d569968285 100644
--- a/drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c
+++ b/drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c
@@ -486,9 +486,9 @@ static int rkisp1_probe(struct platform_device *pdev)
return PTR_ERR(rkisp1->base_addr);
for (i = 0; i < match_data->isr_size; i++) {
- irq = (match_data->isrs[i].name) ?
- platform_get_irq_byname(pdev, match_data->isrs[i].name) :
- platform_get_irq(pdev, i);
+ irq = match_data->isrs[i].name
+ ? platform_get_irq_byname(pdev, match_data->isrs[i].name)
+ : platform_get_irq(pdev, i);
if (irq < 0)
return irq;

Privacy Policy