summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorNigel Christian <nigel.l.christian@gmail.com>2020-10-29 01:52:17 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2020-11-06 04:31:15 +0100
commit5bd9938e9316a903f1586b8459fbaac396fc1188 (patch)
tree5ef5aba479c0c3cba37382853424936cc6021eac /drivers/char
parentcrypto: arm/aes-neonbs - fix usage of cbc(aes) fallback (diff)
downloadlinux-5bd9938e9316a903f1586b8459fbaac396fc1188.tar.xz
linux-5bd9938e9316a903f1586b8459fbaac396fc1188.zip
hwrng: imx-rngc - irq already prints an error
Clean up the check for irq. dev_err() is superfluous as platform_get_irq() already prints an error. Check for zero would indicate a bug. Remove curly braces to conform to styling requirements. Signed-off-by: Nigel Christian <nigel.l.christian@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/hw_random/imx-rngc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/char/hw_random/imx-rngc.c b/drivers/char/hw_random/imx-rngc.c
index 61c844baf26e..b05d676ca814 100644
--- a/drivers/char/hw_random/imx-rngc.c
+++ b/drivers/char/hw_random/imx-rngc.c
@@ -252,10 +252,8 @@ static int imx_rngc_probe(struct platform_device *pdev)
}
irq = platform_get_irq(pdev, 0);
- if (irq <= 0) {
- dev_err(&pdev->dev, "Couldn't get irq %d\n", irq);
+ if (irq < 0)
return irq;
- }
ret = clk_prepare_enable(rngc->clk);
if (ret)