mwifiex: use a function to replace two copies of a code fragment
authorBing Zhao <bzhao@marvell.com>
Wed, 8 Jan 2014 23:45:57 +0000 (15:45 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 9 Jan 2014 15:56:40 +0000 (10:56 -0500)
commitb4de2c35974c5b1af8b8e1575590d1fb132dddb4
treee846714980142f5bb48e6f64b0692e3d0045266a
parent1f34546a3a76daede75fedd6d2305f500c3cbeba
mwifiex: use a function to replace two copies of a code fragment

Instead of having two copies of the code for device tree cfgdata
downloading, add a function to improve the code.

Reviewed-by: Paul Stewart <pstew@chromium.org>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/cfg80211.c
drivers/net/wireless/mwifiex/main.h
drivers/net/wireless/mwifiex/sta_ioctl.c