mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pan Chuang <panchuang@vivo.com>
To: Scott Branden <scott.branden@broadcom.com>,
	Broadcom internal kernel review list
	<bcm-kernel-feedback-list@broadcom.com>,
	Arnd Bergmann <arnd@arndb.de>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-kernel@vger.kernel.org (open list)
Cc: Pan Chuang <panchuang@vivo.com>
Subject: [PATCH 1/3] misc: bcm-vk: Remove redundant dev_err()
Date: Fri, 17 Jul 2026 18:05:30 +0800	[thread overview]
Message-ID: <20260717100533.601899-2-panchuang@vivo.com> (raw)
In-Reply-To: <20260717100533.601899-1-panchuang@vivo.com>

Since commit 55b48e23f5c4 ("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>
---
 drivers/misc/bcm-vk/bcm_vk_dev.c | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)

diff --git a/drivers/misc/bcm-vk/bcm_vk_dev.c b/drivers/misc/bcm-vk/bcm_vk_dev.c
index 5773ffb46f0f..54b40b4d556d 100644
--- a/drivers/misc/bcm-vk/bcm_vk_dev.c
+++ b/drivers/misc/bcm-vk/bcm_vk_dev.c
@@ -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);
 	}
 
-- 
2.34.1


  reply	other threads:[~2026-07-17 10:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-17 10:05 [PATCH 0/3] misc: Remove redundant error messages on IRQ request failure Pan Chuang
2026-07-17 10:05 ` Pan Chuang [this message]
2026-07-17 10:05 ` [PATCH 2/3] misc: Remove redundant dev_err()/dev_err_probe() Pan Chuang
2026-07-17 10:05 ` [PATCH 3/3] mei: Remove redundant dev_err() Pan Chuang
2026-07-19  5:45   ` Usyskin, Alexander

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260717100533.601899-2-panchuang@vivo.com \
    --to=panchuang@vivo.com \
    --cc=arnd@arndb.de \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=scott.branden@broadcom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®