]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
media: cx231xx: remove redundant assignment to variable value
authorColin Ian King <colin.i.king@gmail.com>
Wed, 13 Nov 2024 14:42:55 +0000 (14:42 +0000)
committerHans Verkuil <hverkuil@xs4all.nl>
Mon, 2 Dec 2024 13:05:24 +0000 (14:05 +0100)
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 <colin.i.king@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/usb/cx231xx/cx231xx-avcore.c

index 6139ef5d891d6be2ccc86a94085e56e753371360..1cfec76b72f3787ef37f266fb5c001584dab181b 100644 (file)
@@ -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)