Skip to content

Commit e5e42ad

Browse files
YueHaibinglinusw
authored andcommitted
gpiolib: remove set but not used variable 'config'
drivers/gpio/gpiolib.c: In function gpio_set_config: drivers/gpio/gpiolib.c:3053:16: warning: variable config set but not used [-Wunused-but-set-variable] commit d90f368 ("gpiolib: have a single place of calling set_config()") left behind this unused variable. Reported-by: Hulk Robot <[email protected]> Signed-off-by: YueHaibing <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Bartosz Golaszewski <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent e81ccba commit e5e42ad

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/gpio/gpiolib.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3043,7 +3043,6 @@ static int gpio_do_set_config(struct gpio_chip *gc, unsigned int offset,
30433043
static int gpio_set_config(struct gpio_chip *gc, unsigned int offset,
30443044
enum pin_config_param mode)
30453045
{
3046-
unsigned long config;
30473046
unsigned arg;
30483047

30493048
switch (mode) {
@@ -3057,7 +3056,6 @@ static int gpio_set_config(struct gpio_chip *gc, unsigned int offset,
30573056
arg = 0;
30583057
}
30593058

3060-
config = PIN_CONF_PACKED(mode, arg);
30613059
return gpio_do_set_config(gc, offset, mode);
30623060
}
30633061

0 commit comments

Comments
 (0)