Skip to content

Commit

Permalink
crypto: omap-aes - fix error return code in omap_aes_probe()
Browse files Browse the repository at this point in the history
Propagate the return value of platform_get_irq on failure.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Gustavo A. R. Silva authored and Herbert Xu committed Jul 18, 2017
1 parent 353ef08 commit 62c58f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/crypto/omap-aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,7 @@ static int omap_aes_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0);
if (irq < 0) {
dev_err(dev, "can't get IRQ resource\n");
err = irq;
goto err_irq;
}

Expand Down

0 comments on commit 62c58f8

Please sign in to comment.