]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8821ae: Pass large struct by const reference
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Tue, 1 Jul 2014 10:25:44 +0000 (12:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Jul 2014 23:51:48 +0000 (16:51 -0700)
commitc7f15802f965177dcada7c73d9b391522d40e0bc
tree48fbaad098d659d88c9199425c9cf24f9b4b247f
parentfa9b8c741592f92f3254176b406723f1151844b2
staging: rtl8821ae: Pass large struct by const reference

struct rtl_stats is rather huge (152 bytes), and since
rtl8812ae_rx_command_packet_handler() does not modify it, it might as
well be passed by const reference.

Reported by Coverity: CID 1167285

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8821ae/pci.c
drivers/staging/rtl8821ae/rtl8821ae/sw.c
drivers/staging/rtl8821ae/wifi.h