net: phy: spi_ks8995: Introduce the use of devm_kzalloc
authorHimangi Saraogi <himangi774@gmail.com>
Sun, 3 Aug 2014 08:09:43 +0000 (13:39 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Aug 2014 19:55:23 +0000 (12:55 -0700)
commitb32a8b6410b9e718f3d47dbe7a266b7a0b70bb66
treecbdbb075af6d956b45e46e1a25d72c6eb6559c31
parent5fa766946ba3ef88374445ec014f0e72481fd63a
net: phy: spi_ks8995: Introduce the use of devm_kzalloc

This patch introduces the use of devm_kzalloc and does away with the
kfrees in the probe and remove functions. Also, a label is removed.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/spi_ks8995.c