]> git.karo-electronics.de Git - linux-beck.git/commit
staging: rtl8192ee: Pass large struct by const reference
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Tue, 1 Jul 2014 10:25:45 +0000 (12:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Jul 2014 23:51:48 +0000 (16:51 -0700)
commitbc4f07c86eec8d530d8124530067b589b4be5c71
tree5e95f61d25642b910ea6db6bc9831ea1e8644baf
parent57fc3b7c4d4dbc368d1b108d63fc9c465204c43a
staging: rtl8192ee: Pass large struct by const reference

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

Reported by Coverity: CID 1222131

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