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>
This commit is contained in:
Geert Uytterhoeven 2021-10-19 16:45:11 +02:00 committed by Miguel Ojeda
parent fb61e137c0
commit 11b92913d1

View file

@ -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,