mirror of
https://github.com/torvalds/linux.git
synced 2026-05-05 23:05:25 -04:00
net: ipa: Remove unnecessary print function dev_err()
The print function dev_err() is redundant because platform_get_irq_byname() already prints an error. ./drivers/net/ipa/ipa_interrupt.c:300:2-9: line 300 is redundant because platform_get_irq() already prints an error. Reported-by: Abaci Robot <abaci@linux.alibaba.com> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8756 Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://lore.kernel.org/r/20240415031456.10805-1-jiapeng.chong@linux.alibaba.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
c2b640529e
commit
19ad0f3a16
@@ -291,16 +291,12 @@ void ipa_interrupt_deconfig(struct ipa *ipa)
|
||||
/* Initialize the IPA interrupt structure */
|
||||
struct ipa_interrupt *ipa_interrupt_init(struct platform_device *pdev)
|
||||
{
|
||||
struct device *dev = &pdev->dev;
|
||||
struct ipa_interrupt *interrupt;
|
||||
int irq;
|
||||
|
||||
irq = platform_get_irq_byname(pdev, "ipa");
|
||||
if (irq <= 0) {
|
||||
dev_err(dev, "DT error %d getting \"ipa\" IRQ property\n", irq);
|
||||
|
||||
if (irq <= 0)
|
||||
return ERR_PTR(irq ? : -EINVAL);
|
||||
}
|
||||
|
||||
interrupt = kzalloc(sizeof(*interrupt), GFP_KERNEL);
|
||||
if (!interrupt)
|
||||
|
||||
Reference in New Issue
Block a user