mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 06:02:05 +00:00
crypto: keembay - Remove redundant dev_err calls
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
bea47077ec
commit
6dab374673
@ -1623,10 +1623,8 @@ static int kmb_ocs_aes_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
aes_dev->base_reg = devm_ioremap_resource(&pdev->dev, aes_mem);
|
||||
if (IS_ERR(aes_dev->base_reg)) {
|
||||
dev_err(dev, "Failed to get base address\n");
|
||||
if (IS_ERR(aes_dev->base_reg))
|
||||
return PTR_ERR(aes_dev->base_reg);
|
||||
}
|
||||
|
||||
/* Get and request IRQ */
|
||||
aes_dev->irq = platform_get_irq(pdev, 0);
|
||||
|
@ -1192,10 +1192,8 @@ static int kmb_ocs_hcu_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
hcu_dev->io_base = devm_ioremap_resource(dev, hcu_mem);
|
||||
if (IS_ERR(hcu_dev->io_base)) {
|
||||
dev_err(dev, "Could not io-remap mem resource.\n");
|
||||
if (IS_ERR(hcu_dev->io_base))
|
||||
return PTR_ERR(hcu_dev->io_base);
|
||||
}
|
||||
|
||||
init_completion(&hcu_dev->irq_done);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user