Commit 5bd9938e authored by Nigel Christian's avatar Nigel Christian Committed by Herbert Xu
Browse files

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: default avatarNigel Christian <nigel.l.christian@gmail.com>

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent a2715fbd
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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)