mtd: rawnand: mxic: Remove dev_err() on platform_get_irq() failure
platform_get_irq() will call dev_err() itself on failure, so there is no need for the driver to also do this. This is detected by coccinelle. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
parent
0e04b2ff71
commit
21777bc904
@ -524,10 +524,8 @@ static int mxic_nfc_probe(struct platform_device *pdev)
|
||||
nand_chip->controller = &nfc->controller;
|
||||
|
||||
irq = platform_get_irq(pdev, 0);
|
||||
if (irq < 0) {
|
||||
dev_err(&pdev->dev, "failed to retrieve irq\n");
|
||||
if (irq < 0)
|
||||
return irq;
|
||||
}
|
||||
|
||||
mxic_nfc_hw_init(nfc);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user