diff options
author | Dan Carpenter <error27@gmail.com> | 2022-11-23 09:43:27 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2022-11-30 02:02:46 +0300 |
commit | 80fb249da98e6b9e7c3d356da912a67757e92e75 (patch) | |
tree | c1634caba665f537b7807b7c8d696eacde508962 /drivers/input/touchscreen | |
parent | 9f4211bf7f811b653aa6acfb9aea38222436a458 (diff) | |
download | linux-80fb249da98e6b9e7c3d356da912a67757e92e75.tar.xz |
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>
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r-- | drivers/input/touchscreen/elants_i2c.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/elants_i2c.c b/drivers/input/touchscreen/elants_i2c.c index d47b773e2a64..fefc2e68e1de 100644 --- a/drivers/input/touchscreen/elants_i2c.c +++ b/drivers/input/touchscreen/elants_i2c.c @@ -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); |