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)
commitb58df4461921dad57707fbedee11e6f79f58b1e6
treee846714980142f5bb48e6f64b0692e3d0045266a
parent63791ccd4690e5c6b3f060bcd2b846e31bd0b423
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