From: Jesper Juhl Date: Sun, 6 Nov 2011 23:21:26 +0000 (+0100) Subject: rtl8192e: Don't copy huge struct by value (and make it const). X-Git-Tag: v3.3-rc1~152^2~101^2~282 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f03053b6810c7ca315afb30b31b63d9f5863faf;p=pandora-kernel.git 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 Acked-by: Larry Finger Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed