* [PATCH -next 1/2] staging: gpib: Remove unnecessary print function dev_err()
@ 2025-02-26 6:07 Jiapeng Chong
2025-02-26 6:07 ` [PATCH -next 2/2] " Jiapeng Chong
0 siblings, 1 reply; 3+ messages in thread
From: Jiapeng Chong @ 2025-02-26 6:07 UTC (permalink / raw)
To: dpenkler; +Cc: gregkh, linux-staging, linux-kernel, Jiapeng Chong, Abaci Robot
The print function dev_err() is redundant because platform_get_irq()
already prints an error.
./drivers/staging/gpib/eastwood/fluke_gpib.c:1027:2-9: line 1027 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=19058
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
drivers/staging/gpib/eastwood/fluke_gpib.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/gpib/eastwood/fluke_gpib.c b/drivers/staging/gpib/eastwood/fluke_gpib.c
index 731732bd8301..4fd3a6cad0d2 100644
--- a/drivers/staging/gpib/eastwood/fluke_gpib.c
+++ b/drivers/staging/gpib/eastwood/fluke_gpib.c
@@ -1023,10 +1023,9 @@ static int fluke_attach_impl(gpib_board_t *board, const gpib_board_config_t *con
}
irq = platform_get_irq(fluke_gpib_pdev, 0);
- if (irq < 0) {
- dev_err(&fluke_gpib_pdev->dev, "failed to obtain IRQ\n");
+ if (irq < 0)
return -EBUSY;
- }
+
retval = request_irq(irq, fluke_gpib_interrupt, isr_flags, fluke_gpib_pdev->name, board);
if (retval) {
dev_err(&fluke_gpib_pdev->dev,
--
2.32.0.3.g01195cf9f
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH -next 2/2] staging: gpib: Remove unnecessary print function dev_err()
2025-02-26 6:07 [PATCH -next 1/2] staging: gpib: Remove unnecessary print function dev_err() Jiapeng Chong
@ 2025-02-26 6:07 ` Jiapeng Chong
2025-03-20 14:01 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Jiapeng Chong @ 2025-02-26 6:07 UTC (permalink / raw)
To: dpenkler; +Cc: gregkh, linux-staging, linux-kernel, Jiapeng Chong, Abaci Robot
The print function dev_err() is redundant because platform_get_irq()
already prints an error.
./drivers/staging/gpib/fmh_gpib/fmh_gpib.c:1426:2-9: line 1426 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=19059
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
drivers/staging/gpib/fmh_gpib/fmh_gpib.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/gpib/fmh_gpib/fmh_gpib.c b/drivers/staging/gpib/fmh_gpib/fmh_gpib.c
index d62c83368518..613bdcac12d1 100644
--- a/drivers/staging/gpib/fmh_gpib/fmh_gpib.c
+++ b/drivers/staging/gpib/fmh_gpib/fmh_gpib.c
@@ -1422,10 +1422,9 @@ static int fmh_gpib_attach_impl(gpib_board_t *board, const gpib_board_config_t *
(unsigned long)resource_size(e_priv->dma_port_res));
irq = platform_get_irq(pdev, 0);
- if (irq < 0) {
- dev_err(board->dev, "request for IRQ failed\n");
+ if (irq < 0)
return -EBUSY;
- }
+
retval = request_irq(irq, fmh_gpib_interrupt, IRQF_SHARED, pdev->name, board);
if (retval) {
dev_err(board->dev,
--
2.32.0.3.g01195cf9f
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH -next 2/2] staging: gpib: Remove unnecessary print function dev_err()
2025-02-26 6:07 ` [PATCH -next 2/2] " Jiapeng Chong
@ 2025-03-20 14:01 ` Greg KH
0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2025-03-20 14:01 UTC (permalink / raw)
To: Jiapeng Chong; +Cc: dpenkler, linux-staging, linux-kernel, Abaci Robot
On Wed, Feb 26, 2025 at 02:07:35PM +0800, Jiapeng Chong wrote:
> The print function dev_err() is redundant because platform_get_irq()
> already prints an error.
>
> ./drivers/staging/gpib/fmh_gpib/fmh_gpib.c:1426:2-9: line 1426 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=19059
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
> ---
> drivers/staging/gpib/fmh_gpib/fmh_gpib.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
You have 2 different patches here, yet the identical subject line. I
just caught this after I added it to my staging-testing branch, so I'll
go drop it from there now and wait for a v2 series.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-20 14:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-26 6:07 [PATCH -next 1/2] staging: gpib: Remove unnecessary print function dev_err() Jiapeng Chong
2025-02-26 6:07 ` [PATCH -next 2/2] " Jiapeng Chong
2025-03-20 14:01 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox