From: Dan Carpenter Date: Wed, 23 Nov 2022 06:43:27 +0000 (+0300) Subject: Input: elants_i2c - delete some dead code X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=80fb249da98e6b9e7c3d356da912a67757e92e75;p=linux.git 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 Reviewed-by: Douglas Anderson Reviewed-by: Mattijs Korpershoek Link: https://lore.kernel.org/r/Y33BD9xkRC9euIdO@kili Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/elants_i2c.c b/drivers/input/touchscreen/elants_i2c.c index d47b773e2a647..fefc2e68e1ded 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);