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:
caa0bf6
)
drivers/net/phy/mdio-mux-gpio.c: drop devm_kfree of devm_kzalloc'd data
author
Julia Lawall
<Julia.Lawall@lip6.fr>
Sat, 4 Aug 2012 06:50:49 +0000
(06:50 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 6 Aug 2012 20:24:27 +0000
(13:24 -0700)
devm_kfree should not have to be explicitly used.
The semantic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
expression x,d;
@@
x = devm_kzalloc(...)
...
?-devm_kfree(d,x);
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-mux-gpio.c
patch
|
blob
|
history
diff --git
a/drivers/net/phy/mdio-mux-gpio.c
b/drivers/net/phy/mdio-mux-gpio.c
index e0cc4ef33dee2b035ee576ecbb17196984925d74..eefe49e8713ca633c8383b1c388826f45e5c9e0c 100644
(file)
--- a/
drivers/net/phy/mdio-mux-gpio.c
+++ b/
drivers/net/phy/mdio-mux-gpio.c
@@
-101,7
+101,6
@@
err:
n--;
gpio_free(s->gpio[n]);
}
- devm_kfree(&pdev->dev, s);
return r;
}