Skip to content

Commit 02b6bdd

Browse files
Colin Ian Kinglinusw
authored andcommitted
gpio: mockup: remove unused variable gc
The variable gc is assigned but never read and is redundant. Remove it. Cleans up clang warning: drivers/gpio/gpio-mockup.c:169:2: warning: Value stored to 'gc' is never read Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 72c7c78 commit 02b6bdd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/gpio/gpio-mockup.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ static ssize_t gpio_mockup_event_write(struct file *file,
153153
struct gpio_mockup_chip *chip;
154154
struct seq_file *sfile;
155155
struct gpio_desc *desc;
156-
struct gpio_chip *gc;
157156
int rv, val;
158157

159158
rv = kstrtoint_from_user(usr_buf, size, 0, &val);
@@ -166,7 +165,6 @@ static ssize_t gpio_mockup_event_write(struct file *file,
166165
priv = sfile->private;
167166
desc = priv->desc;
168167
chip = priv->chip;
169-
gc = &chip->gc;
170168

171169
gpiod_set_value_cansleep(desc, val);
172170
irq_sim_fire(&chip->irqsim, priv->offset);

0 commit comments

Comments
 (0)