diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2011-04-15 23:50:42 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-19 15:38:04 -0400 |
commit | 2be7859f41e9bcef5b15bd23d63e01536344e3df (patch) | |
tree | 3c7dcec98f5811731fa4209d9d52d504bc4de036 /drivers/net/wireless/mwifiex/main.h | |
parent | a37316586d926a10d66b5585c5d91683d6468f68 (diff) |
mwifiex: optimize driver initialization code
1) removal of unnecessary mwifiex_device structure
2) avoid passing adapter pointer to mwifiex_init_sw()
3) remove local variable drv_mode_info in mwifiex_add_card()
4) type change in mwifiex_bss_attr to match mwifiex_private
5) removal of more wordy comments
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/main.h')
-rw-r--r-- | drivers/net/wireless/mwifiex/main.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/main.h b/drivers/net/wireless/mwifiex/main.h index 2d296dcc210e..1b503038270e 100644 --- a/drivers/net/wireless/mwifiex/main.h +++ b/drivers/net/wireless/mwifiex/main.h | |||
@@ -872,7 +872,7 @@ mwifiex_copy_rates(u8 *dest, u32 pos, u8 *src, int len) | |||
872 | */ | 872 | */ |
873 | static inline struct mwifiex_private * | 873 | static inline struct mwifiex_private * |
874 | mwifiex_get_priv_by_id(struct mwifiex_adapter *adapter, | 874 | mwifiex_get_priv_by_id(struct mwifiex_adapter *adapter, |
875 | u32 bss_num, u32 bss_type) | 875 | u8 bss_num, u8 bss_type) |
876 | { | 876 | { |
877 | int i; | 877 | int i; |
878 | 878 | ||