]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit330fce87913589edd7fbac49a465513cd83c47cc
treecbdbb075af6d956b45e46e1a25d72c6eb6559c31
parentc0fb92013fa4992fb1493b7b1a7f571d0bc415bf
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