Skip to content

Commit

Permalink
Input: analog - fix formatting of error code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zhang Qilong authored and Dmitry Torokhov committed Nov 9, 2020
1 parent a1b5196 commit 29c2e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/joystick/analog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 29c2e12

Please sign in to comment.