Commit f72fed86 authored by Markus Elfring's avatar Markus Elfring Committed by Herbert Xu
Browse files

hwrng: xgene - Delete an error message in xgene_rng_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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent b111418a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -328,10 +328,8 @@ static int xgene_rng_probe(struct platform_device *pdev)
		return PTR_ERR(ctx->csr_base);

	rc = platform_get_irq(pdev, 0);
	if (rc < 0) {
		dev_err(&pdev->dev, "No IRQ resource\n");
	if (rc < 0)
		return rc;
	}
	ctx->irq = rc;

	dev_dbg(&pdev->dev, "APM X-Gene RNG BASE %p ALARM IRQ %d",