Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp819538ybi; Fri, 12 Jul 2019 05:11:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVp9KSY7TPhj5VZaz0bR2YyHkax4cMstHpOqaudCbLWFc3yJmNxvt5I/Nn6XOqkccRmLsK X-Received: by 2002:a17:90a:2488:: with SMTP id i8mr11164664pje.123.1562933497748; Fri, 12 Jul 2019 05:11:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562933497; cv=none; d=google.com; s=arc-20160816; b=P5bzEuXBdUszFatNWEfZYm+pRVyTrTXoDzkP2k0cOe1MljvV3jPY0c0bKpONgUVxqW +SDjfnp2ZYSstn77P2nE+81jjKIPLye/n/Ye5AMRpD7aVSoY8/Npfot4GM6pyHXq7d2r +Yfu9kGC6g/znulvpEgPSIU42gZAqOOsvTsB/XGGtpG4tpIqM4CbjApyb/HGP6MC8yGJ ozHfBVB+Hmak3Gry6+x6qOuoZWaRY+KW8KbIGc2IU4W04Ry6YpYb6j8UlYcPyhx5QZ7f lRS0f3mDDe51RNnxixg7ho8WI5PiPwdMk4/LYFhMnhAerS6lTLlEK09k9h45Lsgvjr5x wM5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date; bh=0M8V1OMExJmdz0z72QOPopjRfrUO4opbdHjkczPcMHg=; b=jiJSHq8Icd5mmAicV+uiuYBTJIfB/V7LqUBIYh0gXK1lTjdgR3KPiuLg8K5FZfXqID s8Ad/JE2ctdusUtaPze6EPddN/cPt/6wfZY0P4yOfz9k4ykGfUo56G/QgelVFdEV3Kxh WgQZq8dcyHGwK2aIPZHr9Mj1MCUUCeP7v8TAC6sya9XE2ypm0H2rI7Qek5F5bEYmZpB4 8/kuuIIOgOA2KOn4ul544v7yH5NxBVfeOGHxOnS8aATGckOS34Q3UiNIFA+RfLNiZ78Y iFUPZ2I2CljFPESYSym9jLEPLp0mwPu6b8fqg+bzA3I/F4aZm6/5TuTOZwYEBzxQC2Cv Ad8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d25si8279835pge.301.2019.07.12.05.11.23; Fri, 12 Jul 2019 05:11:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727012AbfGLMJw (ORCPT + 99 others); Fri, 12 Jul 2019 08:09:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52444 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726266AbfGLMJv (ORCPT ); Fri, 12 Jul 2019 08:09:51 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 721FEC01F278; Fri, 12 Jul 2019 12:09:51 +0000 (UTC) Received: from localhost (unknown [10.40.205.61]) by smtp.corp.redhat.com (Postfix) with ESMTP id D6B4B600CD; Fri, 12 Jul 2019 12:09:50 +0000 (UTC) Date: Fri, 12 Jul 2019 14:09:50 +0200 From: Stanislaw Gruszka To: linux-wireless@vger.kernel.org Cc: Jakub Kicinski Subject: [PATCH] mt7601u: use params->ssn value directly Message-ID: <20190712120949.GA21396@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Fri, 12 Jul 2019 12:09:51 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org There is no point to use pointer to params->ssn. Signed-off-by: Stanislaw Gruszka --- drivers/net/wireless/mediatek/mt7601u/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt7601u/main.c b/drivers/net/wireless/mediatek/mt7601u/main.c index 89a7b1234ffb..72e608cc53af 100644 --- a/drivers/net/wireless/mediatek/mt7601u/main.c +++ b/drivers/net/wireless/mediatek/mt7601u/main.c @@ -351,7 +351,7 @@ mt76_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_sta *sta = params->sta; enum ieee80211_ampdu_mlme_action action = params->action; u16 tid = params->tid; - u16 *ssn = ¶ms->ssn; + u16 ssn = params->ssn; struct mt76_sta *msta = (struct mt76_sta *) sta->drv_priv; WARN_ON(msta->wcid.idx > GROUP_WCID(0)); @@ -371,7 +371,7 @@ mt76_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif, case IEEE80211_AMPDU_TX_STOP_FLUSH_CONT: break; case IEEE80211_AMPDU_TX_START: - msta->agg_ssn[tid] = *ssn << 4; + msta->agg_ssn[tid] = ssn << 4; ieee80211_start_tx_ba_cb_irqsafe(vif, sta->addr, tid); break; case IEEE80211_AMPDU_TX_STOP_CONT: -- 2.20.1