aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorZhang Qilong <zhangqilong3@huawei.com>2020-10-28 12:21:47 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2020-11-08 22:31:16 -0800
commit29c2e1249cfaed365a6fcfa5a3e6a2e590f54879 (patch)
tree18514cecb1b0e719c81ecfa33344f16ba3b1d1aa /drivers/input
parentInput: cyapa_gen5 - fix obvious abuse of kernel-doc format (diff)
downloadlinux-dev-29c2e1249cfaed365a6fcfa5a3e6a2e590f54879.tar.xz
linux-dev-29c2e1249cfaed365a6fcfa5a3e6a2e590f54879.zip
Input: analog - fix formatting of error code
The location of the minus sign and the error code are linked together for better human view. Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com> Link: https://lore.kernel.org/r/20201027135020.66632-1-zhangqilong3@huawei.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/joystick/analog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/joystick/analog.c b/drivers/input/joystick/analog.c
index 2b625ebef914..f798922a4598 100644
--- a/drivers/input/joystick/analog.c
+++ b/drivers/input/joystick/analog.c
@@ -665,7 +665,7 @@ static int analog_connect(struct gameport *gameport, struct gameport_driver *drv
int err;
if (!(port = kzalloc(sizeof(struct analog_port), GFP_KERNEL)))
- return - ENOMEM;
+ return -ENOMEM;
err = analog_init_port(gameport, drv, port);
if (err)