mwifiex: scan: Simplify code
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Wed, 31 Aug 2016 11:50:59 +0000 (13:50 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 9 Sep 2016 09:21:25 +0000 (12:21 +0300)
commitb711657616947e7b4c15f6825d259324216b23f2
tree4c03bf3a3cc72b510a0a5cc6c7439e5c811ba51b
parent4c5dae59d2e9386c706a2f3c7c2746ae277bf568
mwifiex: scan: Simplify code

This patch:
   - improves code layout
   - removes a useless memset(0) for some memory allocated with kzalloc
   - removes a useless if. We know that 'if (chan_band_tlv)' will succeed
     because it has been tested a few lines above

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/scan.c