mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 06:31:58 +02:00
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 <colin.i.king@gmail.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
This commit is contained in:
parent
8d46603eee
commit
44cfae26a2
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user