Commit 80fb249d authored by Dan Carpenter's avatar Dan Carpenter Committed by Dmitry Torokhov

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: default avatarDan Carpenter <error27@gmail.com>
Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
Reviewed-by: default avatarMattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/Y33BD9xkRC9euIdO@kiliSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 9f4211bf
......@@ -1353,8 +1353,6 @@ static int elants_i2c_power_on(struct elants_data *ts)
udelay(ELAN_POWERON_DELAY_USEC);
gpiod_set_value_cansleep(ts->reset_gpio, 0);
if (error)
return error;
msleep(ELAN_RESET_DELAY_MSEC);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment