Skip to content

Commit

Permalink
pinctrl: pinctrl-st.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 <[email protected]>
Acked-by: Patrice Chotard <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
  • Loading branch information
Rickard Strandqvist authored and linusw committed Jul 11, 2014
1 parent bf4cef6 commit 1f97821
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/pinctrl/pinctrl-st.c
Original file line number Diff line number Diff line change
Expand Up @@ -1172,9 +1172,7 @@ static int st_pctl_dt_parse_groups(struct device_node *np,
const __be32 *list;
struct property *pp;
struct st_pinconf *conf;
phandle phandle;
struct device_node *pins;
u32 pin;
int i = 0, npins = 0, nr_props;

pins = of_get_child_by_name(np, "st,pins");
Expand Down Expand Up @@ -1212,8 +1210,8 @@ static int st_pctl_dt_parse_groups(struct device_node *np,
conf = &grp->pin_conf[i];

/* bank & offset */
phandle = be32_to_cpup(list++);
pin = be32_to_cpup(list++);
be32_to_cpup(list++);
be32_to_cpup(list++);
conf->pin = of_get_named_gpio(pins, pp->name, 0);
conf->name = pp->name;
grp->pins[i] = conf->pin;
Expand Down

0 comments on commit 1f97821

Please sign in to comment.