projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf4cef6
)
pinctrl: pinctrl-st.c: Cleaning up values that are never used
author
Rickard Strandqvist
<
[email protected]
>
Thu, 26 Jun 2014 13:44:32 +0000
(15:44 +0200)
committer
Linus Walleij
<
[email protected]
>
Fri, 11 Jul 2014 12:08:35 +0000
(14:08 +0200)
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]
>
drivers/pinctrl/pinctrl-st.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/pinctrl-st.c
b/drivers/pinctrl/pinctrl-st.c
index 1845870413eac07ed2bff42e73d2477896be5d45..d0fb44a095e94489c46ac43d1438fd3cdb410d0d 100644
(file)
--- a/
drivers/pinctrl/pinctrl-st.c
+++ b/
drivers/pinctrl/pinctrl-st.c
@@
-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");
@@
-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;