Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp482277ybl; Fri, 23 Aug 2019 03:58:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJn19VKllOHoKXM6AvH1X7pgaDEl4ZzoN8YAaq1glnRs0PnxtSUTNI0AkgPgVaGTC46yL0 X-Received: by 2002:a63:ed55:: with SMTP id m21mr3421055pgk.343.1566557898685; Fri, 23 Aug 2019 03:58:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566557898; cv=none; d=google.com; s=arc-20160816; b=Tj4lkJ6CwpMvyzqJw3+zhCJUEJd+IF1+sHayqB/QkxsP1FXbBkI/mpxwmYMhX8PGm3 22RhWzSsh0iq1pSQKhU/DgbIq0Oc/0R227Pm7YdA8Z65SP6y39Ciqg4nPak1juvSwHRa lMOh5Loi/cynW68RJFT51QjvCR2JdxSGULtA93jpCTmTWNuGs55sywtsbjJLg8isH87N MzlvxhEuNKpaf34PqCQ/G+XuxOTyqyc9IAfcK4BM4zV4/Bpl1shiw+v1lwt6ZcmOEeMH bg2xGJxF26Cq1m6SKqN9VQCEipy9Z493wVgiJuFQBB0B5L/9h1+5Oq4wWf7jeE8HuvN/ WRFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=MlfJDSuVi6boxyyqXeqyqXJpY/7FkW99RwtsW/PbIJg=; b=k8EPhSVn440on5/OY006dkpr0yRgOCbBhA448z6iUAZODm+IzwLnZ9udnS4zajj+78 zNUXLr0U3yom0TFCebkK8ns69De7PTsTquurpAo57kbus8D+D6evt75jAvJKt4K+oYFF 9h1d6om+SSChOF9ttpIs40Rd9b0DSrVHE/SYSFM9E7Bz79HcSBgCJPDCgpTuRDVodgK7 /4CbECwW9QAFaSl/W8LG+dhxOcC0NZPBJBzhtjz87KZxhJkYYCj71mkrWC6F6socYOiE 7AeDAys16djoMKmCWGwtk3D5bH4ibBEKemzP9ILqNRFPQNgI0cdYoGpgkpFax7qFyNNz iNHg== 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 q9si2061539pjv.72.2019.08.23.03.58.05; Fri, 23 Aug 2019 03:58:18 -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 S2392240AbfHWIw3 (ORCPT + 99 others); Fri, 23 Aug 2019 04:52:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43884 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391183AbfHWIw3 (ORCPT ); Fri, 23 Aug 2019 04:52:29 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 40EC810BFB3F; Fri, 23 Aug 2019 08:52:29 +0000 (UTC) Received: from localhost (unknown [10.43.2.236]) by smtp.corp.redhat.com (Postfix) with ESMTP id B4615100194E; Fri, 23 Aug 2019 08:52:26 +0000 (UTC) From: Stanislaw Gruszka To: linux-wireless@vger.kernel.org Cc: Felix Fietkau , Lorenzo Bianconi , Ryder Lee , Roy Luo Subject: [PATCH 2/3] mt76: mt76x0: remove redundant chandef copy Date: Fri, 23 Aug 2019 10:52:16 +0200 Message-Id: <1566550337-6287-3-git-send-email-sgruszka@redhat.com> In-Reply-To: <1566550337-6287-1-git-send-email-sgruszka@redhat.com> References: <1566550337-6287-1-git-send-email-sgruszka@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.65]); Fri, 23 Aug 2019 08:52:29 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org We set dev->mt76.chandef in mt76_set_channel() already. Signed-off-by: Stanislaw Gruszka --- drivers/net/wireless/mediatek/mt76/mt76x0/phy.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c b/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c index 31f988e86d92..1d00aa5da95b 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c @@ -944,7 +944,6 @@ int mt76x0_phy_set_channel(struct mt76x02_dev *dev, freq1 = chandef->center_freq1; channel = chandef->chan->hw_value; rf_bw_band = (channel <= 14) ? RF_G_BAND : RF_A_BAND; - dev->mt76.chandef = *chandef; switch (chandef->width) { case NL80211_CHAN_WIDTH_40: -- 1.9.3