rtl8192e: Don't copy huge struct by value (and make it const).
commit6f03053b6810c7ca315afb30b31b63d9f5863faf
authorJesper Juhl <jj@chaosbits.net>
Sun, 6 Nov 2011 23:21:26 +0000 (7 00:21 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 01:19:23 +0000 (26 17:19 -0800)
treea70289993b2e63587e8662856c33e066a64973b6
parent7c19c1e80d348a5c79b65f9fc3d54bbbeea9cd0f
rtl8192e: Don't copy huge struct by value (and make it const).

rtllib_is_shortslot() takes one argument - a struct that's more than a
kilobyte large. It should take a pointer instead of copying such a
huge struct - and the argument might as well be declared 'const' now
that we are at it, since it is not modified. This patch makes these
changes.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8192e/rtllib.h
drivers/staging/rtl8192e/rtllib_softmac.c