[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220422085211.2776419-1-lv.ruyi@zte.com.cn>
Date: Fri, 22 Apr 2022 08:52:11 +0000
From: cgel.zte@...il.com
To: robdclark@...il.com, sean@...rly.run, dmitry.baryshkov@...aro.org
Cc: quic_abhinavk@...cinc.com, airlied@...ux.ie, daniel@...ll.ch,
swboyd@...omium.org, quic_mkrishn@...cinc.com,
angelogioacchino.delregno@...labora.com, vulab@...as.ac.cn,
linux-arm-msm@...r.kernel.org, dri-devel@...ts.freedesktop.org,
freedreno@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
Lv Ruyi <lv.ruyi@....com.cn>, Zeal Robot <zealci@....com.cn>
Subject: [PATCH] drm: msm: fix error check return value of irq_of_parse_and_map()
From: Lv Ruyi <lv.ruyi@....com.cn>
The irq_of_parse_and_map() function returns 0 on failure, and does not
return an negative value.
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@....com.cn>
---
drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c b/drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c
index 3b92372e7bdf..1fb1ed9e95d9 100644
--- a/drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c
+++ b/drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c
@@ -570,7 +570,7 @@ struct msm_kms *mdp5_kms_init(struct drm_device *dev)
}
irq = irq_of_parse_and_map(pdev->dev.of_node, 0);
- if (irq < 0) {
+ if (!irq) {
ret = irq;
DRM_DEV_ERROR(&pdev->dev, "failed to get irq: %d\n", ret);
goto fail;
--
2.25.1
Powered by blists - more mailing lists