]> 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)
commit8ed1bb65e3ab1c91eeac65271296d666d718d3a6
treecbdbb075af6d956b45e46e1a25d72c6eb6559c31
parentb82a0cf012008ac9b5447003108bd90b3e8108c7
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