summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorYang Li <yang.lee@linux.alibaba.com>2022-06-29 07:49:08 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2022-06-29 07:50:48 +0200
commitb2274ff2c4bb7eb6fca6039c7e431506c6c26605 (patch)
tree8c8f81c5988e005fa7b369f4b9a94290a7bfa5a5 /drivers/input
parentInput: exc3000 - fix return value check of wait_for_completion_timeout (diff)
downloadlinux-b2274ff2c4bb7eb6fca6039c7e431506c6c26605.tar.xz
linux-b2274ff2c4bb7eb6fca6039c7e431506c6c26605.zip
Input: sensehat-joystick - remove unnecessary error message
The print function dev_err() is redundant because platform_get_irq() already prints an error. Eliminates the follow coccicheck warning: ./drivers/input/joystick/sensehat-joystick.c:102:2-9: line 102 is redundant because platform_get_irq() already prints an error Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Link: https://lore.kernel.org/r/20220427004906.129893-1-yang.lee@linux.alibaba.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/joystick/sensehat-joystick.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/input/joystick/sensehat-joystick.c b/drivers/input/joystick/sensehat-joystick.c
index 5ad1fe4ff496..a84df39d3b2f 100644
--- a/drivers/input/joystick/sensehat-joystick.c
+++ b/drivers/input/joystick/sensehat-joystick.c
@@ -98,10 +98,8 @@ static int sensehat_joystick_probe(struct platform_device *pdev)
}
irq = platform_get_irq(pdev, 0);
- if (irq < 0) {
- dev_err(&pdev->dev, "Could not retrieve interrupt request");
+ if (irq < 0)
return irq;
- }
error = devm_request_threaded_irq(&pdev->dev, irq,
NULL, sensehat_joystick_report,