Skip to content

Commit

Permalink
pinctrl: abx500: get rid of unused variable
Browse files Browse the repository at this point in the history
commit 2fcea6c
"pinctrl: remove remaining users of gpiochip_remove() retval"
removed the use of the return value from gpiochip_remove()
but missed to delete the dangling "err" variable:

drivers/pinctrl/nomadik/pinctrl-abx500.c:
In function 'abx500_gpio_probe':
drivers/pinctrl/nomadik/pinctrl-abx500.c:1208:11:
warning: unused variable 'err' [-Wunused-variable]

Fix this by getting rid of the dangling variable.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Linus Walleij committed Oct 2, 2014
1 parent 36905a3 commit 3a4b094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pinctrl/nomadik/pinctrl-abx500.c
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@ static int abx500_gpio_probe(struct platform_device *pdev)
const struct of_device_id *match;
struct abx500_pinctrl *pct;
unsigned int id = -1;
int ret, err;
int ret;
int i;

if (!np) {
Expand Down

0 comments on commit 3a4b094

Please sign in to comment.