diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2020-04-05 11:25:30 +0200 |
---|---|---|
committer | Paul Cercueil <paul@crapouillou.net> | 2020-04-07 20:48:41 +0200 |
commit | 71c45008e2b0d68bbcdd658cb5ab632b2aa433f7 (patch) | |
tree | b9bfe3515a0931620c55a3e4bd6e4cf8d6614737 /drivers | |
parent | 20c22ad3295766b9a7f6da29b3620f570993c2f3 (diff) | |
download | lwn-71c45008e2b0d68bbcdd658cb5ab632b2aa433f7.tar.gz lwn-71c45008e2b0d68bbcdd658cb5ab632b2aa433f7.zip |
drm/ingenic: Delete an error message in ingenic_drm_probe()
The function “platform_get_irq” can log an error already.
Thus omit a redundant message for the exception handling in the
calling function.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://patchwork.freedesktop.org/patch/msgid/e03e7106-0f22-99c4-ad21-b288e8990b5a@web.de
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/ingenic/ingenic-drm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/ingenic/ingenic-drm.c b/drivers/gpu/drm/ingenic/ingenic-drm.c index 7f3f869f57b3..7a71471ca783 100644 --- a/drivers/gpu/drm/ingenic/ingenic-drm.c +++ b/drivers/gpu/drm/ingenic/ingenic-drm.c @@ -653,10 +653,8 @@ static int ingenic_drm_probe(struct platform_device *pdev) } irq = platform_get_irq(pdev, 0); - if (irq < 0) { - dev_err(dev, "Failed to get platform irq"); + if (irq < 0) return irq; - } if (soc_info->needs_dev_clk) { priv->lcd_clk = devm_clk_get(dev, "lcd"); |