summaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/mdio-mux-gpio.c
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2012-08-04 06:50:49 +0000
committerDavid S. Miller <davem@davemloft.net>2012-08-06 13:24:27 -0700
commit7cefdd1f55ec075f1f2da0a321495d5a8262ffaa (patch)
treef09362c83c28bd0a70050cd566421d834eba1aed /drivers/net/phy/mdio-mux-gpio.c
parentcaa0bf648cd20a2efbb6558531711e9ce2c6e948 (diff)
downloadblackbird-op-linux-7cefdd1f55ec075f1f2da0a321495d5a8262ffaa.tar.gz
blackbird-op-linux-7cefdd1f55ec075f1f2da0a321495d5a8262ffaa.zip
drivers/net/phy/mdio-mux-gpio.c: drop devm_kfree of devm_kzalloc'd data
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>
Diffstat (limited to 'drivers/net/phy/mdio-mux-gpio.c')
-rw-r--r--drivers/net/phy/mdio-mux-gpio.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/phy/mdio-mux-gpio.c b/drivers/net/phy/mdio-mux-gpio.c
index e0cc4ef33dee..eefe49e8713c 100644
--- 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;
}
OpenPOWER on IntegriCloud