提交 51839e25 编写于 作者: X Xu Wang 提交者: Damien Le Moal

ata: sata_highbank: Remove unnecessary print function dev_err()

The print function dev_err() is redundant because
platform_get_irq() already prints an error.
Signed-off-by: NXu Wang <vulab@iscas.ac.cn>
Signed-off-by: NDamien Le Moal <damien.lemoal@opensource.wdc.com>
上级 68dbbe7d
......@@ -469,10 +469,8 @@ static int ahci_highbank_probe(struct platform_device *pdev)
}
irq = platform_get_irq(pdev, 0);
if (irq < 0) {
dev_err(dev, "no irq\n");
if (irq < 0)
return irq;
}
if (!irq)
return -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册