Skip to content

Commit

Permalink
crypto: sun8i-ss - Delete an error message in sun8i_ss_probe()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Corentin Labbe <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
elfring authored and herbertx committed Apr 16, 2020
1 parent f72fed8 commit 56b80bd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,10 +537,8 @@ static int sun8i_ss_probe(struct platform_device *pdev)
return err;

irq = platform_get_irq(pdev, 0);
if (irq < 0) {
dev_err(ss->dev, "Cannot get SecuritySystem IRQ\n");
if (irq < 0)
return irq;
}

ss->reset = devm_reset_control_get(&pdev->dev, NULL);
if (IS_ERR(ss->reset)) {
Expand Down

0 comments on commit 56b80bd

Please sign in to comment.