mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 13:23:02 -04:00
misc: bcm-vk: Remove redundant dev_err()
Since commit 55b48e23f5 ("genirq/devres: Add error handling in
devm_request_*_irq()"), devm_request_irq() automatically logs
detailed error messages on failure. Remove the now-redundant
driver-specific dev_err() calls.
Signed-off-by: Pan Chuang <panchuang@vivo.com>
Link: https://patch.msgid.link/20260717100533.601899-2-panchuang@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0502b95447
commit
88bf4a3d7d
@@ -1370,21 +1370,15 @@ static int bcm_vk_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
err = devm_request_irq(dev, pci_irq_vector(pdev, vk->num_irqs),
|
||||
bcm_vk_msgq_irqhandler,
|
||||
IRQF_SHARED, DRV_MODULE_NAME, vk);
|
||||
if (err) {
|
||||
dev_err(dev, "failed to request msgq IRQ %d for MSIX %d\n",
|
||||
pdev->irq + vk->num_irqs, vk->num_irqs + 1);
|
||||
if (err)
|
||||
goto err_irq;
|
||||
}
|
||||
}
|
||||
/* one irq for notification from VK */
|
||||
err = devm_request_irq(dev, pci_irq_vector(pdev, vk->num_irqs),
|
||||
bcm_vk_notf_irqhandler,
|
||||
IRQF_SHARED, DRV_MODULE_NAME, vk);
|
||||
if (err) {
|
||||
dev_err(dev, "failed to request notf IRQ %d for MSIX %d\n",
|
||||
pdev->irq + vk->num_irqs, vk->num_irqs + 1);
|
||||
if (err)
|
||||
goto err_irq;
|
||||
}
|
||||
vk->num_irqs++;
|
||||
|
||||
for (i = 0;
|
||||
@@ -1393,11 +1387,8 @@ static int bcm_vk_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
err = devm_request_irq(dev, pci_irq_vector(pdev, vk->num_irqs),
|
||||
bcm_vk_tty_irqhandler,
|
||||
IRQF_SHARED, DRV_MODULE_NAME, vk);
|
||||
if (err) {
|
||||
dev_err(dev, "failed request tty IRQ %d for MSIX %d\n",
|
||||
pdev->irq + vk->num_irqs, vk->num_irqs + 1);
|
||||
if (err)
|
||||
goto err_irq;
|
||||
}
|
||||
bcm_vk_tty_set_irq_enabled(vk, i);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user