Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Zhang Qilong and committed by
Dmitry Torokhov
29c2e124 a1b5196d

+1 -1
+1 -1
drivers/input/joystick/analog.c
··· 665 665 int err; 666 666 667 667 if (!(port = kzalloc(sizeof(struct analog_port), GFP_KERNEL))) 668 - return - ENOMEM; 668 + return -ENOMEM; 669 669 670 670 err = analog_init_port(gameport, drv, port); 671 671 if (err)