diff options
author | Geert Uytterhoeven | 2021-10-19 16:45:11 +0200 |
---|---|---|
committer | Miguel Ojeda | 2021-10-21 23:36:29 +0200 |
commit | 11b92913d1cafeca5bc7c398bf6075dd00e0b8a7 (patch) | |
tree | 001f9d0bb3e8d1f152438e39b995fc85da4bc834 /drivers/auxdisplay | |
parent | fb61e137c004c160f772461ec39953d54f5c9aaf (diff) |
auxdisplay: ht16k33: Remove unneeded error check in keypad probe()
There is no need to check the return code of input_register_device(),
just propagate it to the caller.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Robin van der Gracht <robin@protonic.nl>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'drivers/auxdisplay')
-rw-r--r-- | drivers/auxdisplay/ht16k33.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/auxdisplay/ht16k33.c b/drivers/auxdisplay/ht16k33.c index fed2f8bd2d27..1ce73c4172c8 100644 --- a/drivers/auxdisplay/ht16k33.c +++ b/drivers/auxdisplay/ht16k33.c @@ -388,11 +388,7 @@ static int ht16k33_keypad_probe(struct i2c_client *client, ht16k33_keypad_stop(keypad->dev); - err = input_register_device(keypad->dev); - if (err) - return err; - - return 0; + return input_register_device(keypad->dev); } static int ht16k33_probe(struct i2c_client *client, |