Skip to content

Commit 7cefdd1

Browse files
JuliaLawalldavem330
authored andcommitted
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>
1 parent caa0bf6 commit 7cefdd1

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/net/phy/mdio-mux-gpio.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ static int __devinit mdio_mux_gpio_probe(struct platform_device *pdev)
101101
n--;
102102
gpio_free(s->gpio[n]);
103103
}
104-
devm_kfree(&pdev->dev, s);
105104
return r;
106105
}
107106

0 commit comments

Comments
 (0)