wireless: wlcore: Use devm_kzalloc
authorHimangi Saraogi <himangi774@gmail.com>
Thu, 7 Aug 2014 11:02:45 +0000 (16:32 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Aug 2014 20:17:39 +0000 (16:17 -0400)
commit372e3a846814656d5e514167484f684f828fff56
treeee3cc80815cfd0447be9913d495e2d4b8af008be
parent560ce3087292603dafb2603ee12cab0ff6c20aee
wireless: wlcore: Use devm_kzalloc

This patch introduces the use of devm_kzalloc and does away with the
kfrees in the probe and remove functions. Also, a couple of labels and
the initial assignment of the ret variable in the probe function are
removed.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ti/wlcore/spi.c