Skip to content

Commit 60bcf26

Browse files
weiyongjun \(A\)herbertx
authored andcommitted
crypto: stm32 - remove redundant dev_err call in stm32_cryp_probe()
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun <[email protected]> Reviewed-by: Fabien Dessenne <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 235699e commit 60bcf26

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/crypto/stm32/stm32-cryp.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,10 +1052,8 @@ static int stm32_cryp_probe(struct platform_device *pdev)
10521052

10531053
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
10541054
cryp->regs = devm_ioremap_resource(dev, res);
1055-
if (IS_ERR(cryp->regs)) {
1056-
dev_err(dev, "Cannot map CRYP IO\n");
1055+
if (IS_ERR(cryp->regs))
10571056
return PTR_ERR(cryp->regs);
1058-
}
10591057

10601058
irq = platform_get_irq(pdev, 0);
10611059
if (irq < 0) {

0 commit comments

Comments
 (0)