Skip to content

Commit

Permalink
pinctrl: pinctrl-at91.c: Cleaning up values that are never used
Browse files Browse the repository at this point in the history
Remove variable that are never used

This was found using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Rickard Strandqvist authored and Linus Walleij committed Jul 11, 2014
1 parent 8b0c107 commit 445d202
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/pinctrl/pinctrl-at91.c
Original file line number Diff line number Diff line change
Expand Up @@ -772,9 +772,9 @@ static void at91_pinconf_dbg_show(struct pinctrl_dev *pctldev,
struct seq_file *s, unsigned pin_id)
{
unsigned long config;
int ret, val, num_conf = 0;
int val, num_conf = 0;

ret = at91_pinconf_get(pctldev, pin_id, &config);
at91_pinconf_get(pctldev, pin_id, &config);

DBG_SHOW_FLAG(MULTI_DRIVE);
DBG_SHOW_FLAG(PULL_UP);
Expand Down

0 comments on commit 445d202

Please sign in to comment.