summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2022-11-23 09:43:27 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2022-11-30 02:02:46 +0300
commit80fb249da98e6b9e7c3d356da912a67757e92e75 (patch)
treec1634caba665f537b7807b7c8d696eacde508962 /drivers/input/touchscreen
parent9f4211bf7f811b653aa6acfb9aea38222436a458 (diff)
downloadlinux-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.c2
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);