staging: gpib: eastwood: Remove unnecessary print function dev_err()
authorChen Ni <nichen@iscas.ac.cn>
Mon, 7 Apr 2025 03:07:43 +0000 (11:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Apr 2025 14:47:52 +0000 (16:47 +0200)
Function dev_err() is redundant because platform_get_irq()
already prints an error.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Link: https://lore.kernel.org/r/20250407030743.2382246-1-nichen@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/eastwood/fluke_gpib.c

index 8e6916cd9a9f0332af2f79435485958617077918..516643657c9343d2ef86ab20524609ab3b0c8200 100644 (file)
@@ -1026,10 +1026,8 @@ static int fluke_attach_impl(struct gpib_board *board, const struct gpib_board_c
        }
 
        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,