summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Ni <nichen@iscas.ac.cn>2025-04-07 06:11:10 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-04-15 17:48:03 +0300
commit1269b01cdf3fd3727af2e6b24e6eb61fc750cdb9 (patch)
tree3e824a3483a19f51b7d53d74a711865b4d460ed9
parent51ab134daf5b9b6be9b9c0d19f7963e971497c63 (diff)
downloadlinux-1269b01cdf3fd3727af2e6b24e6eb61fc750cdb9.tar.xz
staging: gpib: fmh_gpib: Remove unnecessary print function dev_err()
Function dev_err() is redundant because platform_get_irq() already prints an error. Signed-off-by: Chen Ni <nichen@iscas.ac.cn> Reviewed-by: Dominik Karol PiÄ…tkowski <dominik.karol.piatkowski@protonmail.com> Link: https://lore.kernel.org/r/20250407031110.2382308-1-nichen@iscas.ac.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/gpib/fmh_gpib/fmh_gpib.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/gpib/fmh_gpib/fmh_gpib.c b/drivers/staging/gpib/fmh_gpib/fmh_gpib.c
index ef2f91dcf8b6..6c122ed4152b 100644
--- a/drivers/staging/gpib/fmh_gpib/fmh_gpib.c
+++ b/drivers/staging/gpib/fmh_gpib/fmh_gpib.c
@@ -1426,10 +1426,8 @@ static int fmh_gpib_attach_impl(struct gpib_board *board, const struct gpib_boar
(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,