drivers/staging/rtl8192u: Don't pass huge struct by value
authorJesper Juhl <jj@chaosbits.net>
Fri, 12 Aug 2011 22:53:07 +0000 (00:53 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 21:46:05 +0000 (14:46 -0700)
commit58af58007e7bf61ba21133fa42ad2106f72a03a1
tree2ae6c71f8f3d97fe34bd033cb4638adb37ddbd30
parent74d556bc63fbf3481100be5c8de2637972cbdaeb
drivers/staging/rtl8192u: Don't pass huge struct by value

struct ieee80211_network is fairly large (more than half a kilobyte),
so let's pass a pointer instead of passing the entire structure by
value when ieee80211_is_54g() and ieee80211_is_shortslot() need to
look at a few members.
Also remove parentheses around the values being returned from those
two functions - 'return' is not a function.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8192u/ieee80211/ieee80211.h
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c