drivers/staging/rtl8187se: Don't pass huge struct by value
authorJesper Juhl <jj@chaosbits.net>
Fri, 12 Aug 2011 22:51:40 +0000 (00:51 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 21:46:05 +0000 (14:46 -0700)
commit74d556bc63fbf3481100be5c8de2637972cbdaeb
tree13fbfa00c04ff7c878235322844c3af379910366
parent93583548585048812dc05a728d182a13213a9fd2
drivers/staging/rtl8187se: 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/rtl8187se/ieee80211/ieee80211.h
drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c
drivers/staging/rtl8187se/r8180_rtl8225z2.c
This page took 0.029705 seconds and 5 git commands to generate.