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

Input: as5011 - fix error return code in as5011_probe()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Wei Yongjun and committed by
Dmitry Torokhov
67b3bfd0 ef0aca7f

+1
+1
drivers/input/joystick/as5011.c
··· 288 288 if (irq < 0) { 289 289 dev_err(&client->dev, 290 290 "Failed to get irq number for button gpio\n"); 291 + error = irq; 291 292 goto err_free_button_gpio; 292 293 } 293 294