Return-path: Received: from mail-bn3nam01on0047.outbound.protection.outlook.com ([104.47.33.47]:62112 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S968988AbdEYN4j (ORCPT ); Thu, 25 May 2017 09:56:39 -0400 Date: Thu, 25 May 2017 16:56:24 +0300 From: Sergey Matyukevich To: Colin King Cc: Avinash Patil , Sergey Matyukevich , Igor Mitsyanko , Kalle Valo , Huizhao Wang , Kamlesh Rath , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][net-next] qtnfmac: remove duplicated assignment to mac Message-ID: <20170525135624.z723srd7evhml5e3@bars> (sfid-20170525_155715_931614_FF57CAAD) References: <20170525134503.12106-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20170525134503.12106-1-colin.king@canonical.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: > mac is being assigned twice, remove redundant 2nd assignment. > > Detected by CoverityScan, CID#1437554 ("Incorrect expression") > > Signed-off-by: Colin Ian King > --- > drivers/net/wireless/quantenna/qtnfmac/cfg80211.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c > index fc0ce2c09097..e3c090008125 100644 > --- a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c > +++ b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c > @@ -922,7 +922,7 @@ void qtnf_netdev_updown(struct net_device *ndev, bool up) > void qtnf_virtual_intf_cleanup(struct net_device *ndev) > { > struct qtnf_vif *vif = qtnf_netdev_get_priv(ndev); > - struct qtnf_wmac *mac = mac = wiphy_priv(vif->wdev.wiphy); > + struct qtnf_wmac *mac = wiphy_priv(vif->wdev.wiphy); Thanks ! Acked-by: Sergey Matyukevich