diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2014-07-01 12:25:44 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-08 16:51:48 -0700 |
commit | 57fc3b7c4d4dbc368d1b108d63fc9c465204c43a (patch) | |
tree | 48fbaad098d659d88c9199425c9cf24f9b4b247f /drivers/staging/rtl8821ae/pci.c | |
parent | a71d10df0d7ee1a65905d99b72d8d37edf5c81ef (diff) |
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>
Diffstat (limited to 'drivers/staging/rtl8821ae/pci.c')
-rw-r--r-- | drivers/staging/rtl8821ae/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8821ae/pci.c b/drivers/staging/rtl8821ae/pci.c index e194ffe58acc..f9847d1fbdeb 100644 --- a/drivers/staging/rtl8821ae/pci.c +++ b/drivers/staging/rtl8821ae/pci.c @@ -861,7 +861,7 @@ static void _rtl_pci_rx_interrupt(struct ieee80211_hw *hw) break; } - rtlpriv->cfg->ops->rx_command_packet_handler(hw, status, skb); + rtlpriv->cfg->ops->rx_command_packet_handler(hw, &status, skb); /* *NOTICE This can not be use for mac80211, |