Skip to content

Commit e5b3732

Browse files
committed
pinctrl: samsung: drop redundant drvdata assignment
Fix W=1 warning: drivers/pinctrl/samsung/pinctrl-samsung.c: In function ‘samsung_gpio_set_direction’: drivers/pinctrl/samsung/pinctrl-samsung.c:633:42: warning: variable ‘drvdata’ set but not used [-Wunused-but-set-variable] Fixes: f9c7447 ("pinctrl: samsung: support a bus clock") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Reviewed-by: André Draszik <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent f9c7447 commit e5b3732

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/pinctrl/samsung/pinctrl-samsung.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,11 +630,9 @@ static int samsung_gpio_set_direction(struct gpio_chip *gc,
630630
struct samsung_pin_bank *bank;
631631
void __iomem *reg;
632632
u32 data, mask, shift;
633-
struct samsung_pinctrl_drv_data *drvdata;
634633

635634
bank = gpiochip_get_data(gc);
636635
type = bank->type;
637-
drvdata = bank->drvdata;
638636

639637
reg = bank->pctl_base + bank->pctl_offset
640638
+ type->reg_offset[PINCFG_TYPE_FUNC];

0 commit comments

Comments
 (0)