From: Zhang Qilong Date: Wed, 28 Oct 2020 19:21:47 +0000 (-0700) Subject: Input: analog - fix formatting of error code X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=29c2e1249cfaed365a6fcfa5a3e6a2e590f54879;p=linux.git 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 Link: https://lore.kernel.org/r/20201027135020.66632-1-zhangqilong3@huawei.com Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/joystick/analog.c b/drivers/input/joystick/analog.c index 2b625ebef914d..f798922a4598c 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)