mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
Input: elants_i2c - delete some dead code
We shuffled the error handling around so this condition is dead code now. The "error" variable is always zero. Signed-off-by: Dan Carpenter <error27@gmail.com> Reviewed-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Link: https://lore.kernel.org/r/Y33BD9xkRC9euIdO@kili Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
9f4211bf7f
commit
80fb249da9
1 changed files with 0 additions and 2 deletions
|
@ -1353,8 +1353,6 @@ static int elants_i2c_power_on(struct elants_data *ts)
|
||||||
udelay(ELAN_POWERON_DELAY_USEC);
|
udelay(ELAN_POWERON_DELAY_USEC);
|
||||||
|
|
||||||
gpiod_set_value_cansleep(ts->reset_gpio, 0);
|
gpiod_set_value_cansleep(ts->reset_gpio, 0);
|
||||||
if (error)
|
|
||||||
return error;
|
|
||||||
|
|
||||||
msleep(ELAN_RESET_DELAY_MSEC);
|
msleep(ELAN_RESET_DELAY_MSEC);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue