From: Amitkumar Karwar Date: Tue, 10 May 2011 02:00:18 +0000 (-0700) Subject: mwifiex: remove unnecessary struct mwifiex_opt_sleep_confirm_buffer X-Git-Tag: v3.0-rc1~377^2~54^2^2~67 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cc5eb629cefa9a40295ff5ee4b1ec41ad855e8d;p=pandora-kernel.git 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 Signed-off-by: Yogesh Ashok Powar Signed-off-by: Bing Zhao Signed-off-by: John W. Linville --- Reading git-diff-tree failed