mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-08 14:13:53 +00:00
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:
parent
fb61e137c0
commit
11b92913d1
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user