]> git.baikalelectronics.ru Git - kernel.git/commit
Input: adp5588-keys - bail out on returned error
authorNuno Sá <nuno.sa@analog.com>
Wed, 31 Aug 2022 03:58:26 +0000 (20:58 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 31 Aug 2022 04:16:05 +0000 (21:16 -0700)
commitbff0ac40b89052e2ee9a86022528687756b2315d
tree3b3506c78862a290434a8359a3ef2ed83fb4df5d
parent2e97ea6b289c3801ad0e5e016fe3f48f6df2df4c
Input: adp5588-keys - bail out on returned error

Don't continue in code paths after some error is found. It makes no
sense to do any other device configuration if a previous one failed.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220829131553.690063-4-nuno.sa@analog.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/adp5588-keys.c