Skip to content

Commit

Permalink
pinctrl/at91: remove unused variable in at91_dt_node_to_map()
Browse files Browse the repository at this point in the history
The variable pin is initialized but never used
otherwise, so remove the unused variable.

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Wei Yongjun authored and Linus Walleij committed Oct 28, 2012
1 parent 05daa16 commit a7e35b9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/pinctrl/pinctrl-at91.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ static int at91_dt_node_to_map(struct pinctrl_dev *pctldev,
struct device_node *parent;
int map_num = 1;
int i;
struct at91_pmx_pin *pin;

/*
* first find the group of this node and check if we need create
Expand Down Expand Up @@ -255,8 +254,6 @@ static int at91_dt_node_to_map(struct pinctrl_dev *pctldev,
/* create config map */
new_map++;
for (i = 0; i < grp->npins; i++) {
pin = &grp->pins_conf[i];

new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN;
new_map[i].data.configs.group_or_pin =
pin_get_name(pctldev, grp->pins[i]);
Expand Down

0 comments on commit a7e35b9

Please sign in to comment.