From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754578AbcEaPQ4 (ORCPT ); Tue, 31 May 2016 11:16:56 -0400 Received: from arcturus.aphlor.org ([188.246.204.175]:39438 "EHLO arcturus.aphlor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750738AbcEaPQy (ORCPT ); Tue, 31 May 2016 11:16:54 -0400 Date: Tue, 31 May 2016 11:16:45 -0400 From: Dave Jones To: Linux Kernel Cc: Xinming Hu , Cathy Luo , Amitkumar Karwar , Kalle Valo Subject: mwifiex: fix self-assignment in mwifiex_uap_recv_packet Message-ID: <20160531151645.GA12987@codemonkey.org.uk> Mail-Followup-To: Dave Jones , Linux Kernel , Xinming Hu , Cathy Luo , Amitkumar Karwar , Kalle Valo MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.6.0 (2016-04-01) X-Spam-Flag: skipped (authorised relay user) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This function wants to operate on the adapter pointer in the priv struct, not on itself which makes no sense. Signed-off-by: Dave Jones diff --git a/drivers/net/wireless/marvell/mwifiex/uap_txrx.c b/drivers/net/wireless/marvell/mwifiex/uap_txrx.c index 666e91af59d7..bf5660eb27d3 100644 --- a/drivers/net/wireless/marvell/mwifiex/uap_txrx.c +++ b/drivers/net/wireless/marvell/mwifiex/uap_txrx.c @@ -272,7 +272,7 @@ int mwifiex_handle_uap_rx_forward(struct mwifiex_private *priv, int mwifiex_uap_recv_packet(struct mwifiex_private *priv, struct sk_buff *skb) { - struct mwifiex_adapter *adapter = adapter; + struct mwifiex_adapter *adapter = priv->adapter; struct mwifiex_sta_node *src_node; struct ethhdr *p_ethhdr; struct sk_buff *skb_uap;