From: Colin Ian King Date: Wed, 13 Nov 2024 14:42:55 +0000 (+0000) Subject: media: cx231xx: remove redundant assignment to variable value X-Git-Tag: v6.14-rc1~91^2~147 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=44cfae26a2681e52e24c8f6d7f7d4340e5e0848e;p=thirdparty%2Fkernel%2Flinux.git media: cx231xx: remove redundant assignment to variable value The variable value is being assigned a value that is never read afterwards, the following if statement re-assigns it with a new value in both paths of the if statement. The assignment is redundant and can be removed. Signed-off-by: Colin Ian King Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/usb/cx231xx/cx231xx-avcore.c b/drivers/media/usb/cx231xx/cx231xx-avcore.c index 6139ef5d891d6..1cfec76b72f37 100644 --- a/drivers/media/usb/cx231xx/cx231xx-avcore.c +++ b/drivers/media/usb/cx231xx/cx231xx-avcore.c @@ -2704,7 +2704,6 @@ int cx231xx_set_gpio_value(struct cx231xx *dev, int pin_number, int pin_value) dev->gpio_dir = value; status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, dev->gpio_val); - value = 0; } if (pin_value == 0)