]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: remove unnecessary struct mwifiex_opt_sleep_confirm_buffer
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 10 May 2011 02:00:18 +0000 (19:00 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 May 2011 19:54:55 +0000 (15:54 -0400)
commit973991cde937cd42a26ad7f6cda186a49aaf8ee7
tree6ab4a0df7ac1e4b157791d539ce85f958e663675
parentd211450e5168166342bf25ff088f622f9fc074fb
mwifiex: remove unnecessary struct mwifiex_opt_sleep_confirm_buffer

The structure definition is
struct mwifiex_opt_sleep_confirm_buffer {
       u8 hdr[4];
       struct mwifiex_opt_sleep_confirm ps_cfm_sleep;
} __packed;

For sleep_confirm command we already reserve 4 bytes (using skb_reserve())
for an interface header. It will be filled later by interface specific code.
We don't need "hdr[4]" element in above structure. So we can use
"struct mwifiex_opt_sleep_confirm" directly instead of
"struct mwifiex_opt_sleep_confirm_buffer".

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/cmdevt.c
drivers/net/wireless/mwifiex/fw.h
drivers/net/wireless/mwifiex/init.c