From: Jesper Juhl Date: Fri, 12 Aug 2011 22:53:07 +0000 (+0200) Subject: drivers/staging/rtl8192u: Don't pass huge struct by value X-Git-Tag: v3.2-rc1~169^2^2~864^2~172 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58af58007e7bf61ba21133fa42ad2106f72a03a1;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed