From patchwork Thu Jun 23 14:57:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9195405 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 74BC26075F for ; Thu, 23 Jun 2016 14:57:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 662C32843A for ; Thu, 23 Jun 2016 14:57:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5B0222845B; Thu, 23 Jun 2016 14:57:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15E302843A for ; Thu, 23 Jun 2016 14:57:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751281AbcFWO5m (ORCPT ); Thu, 23 Jun 2016 10:57:42 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:36072 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750950AbcFWO5l (ORCPT ); Thu, 23 Jun 2016 10:57:41 -0400 Received: by mail-wm0-f66.google.com with SMTP id c82so11661088wme.3 for ; Thu, 23 Jun 2016 07:57:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cvEtRjExctTK1ZvEQqq6OPlvz1wSvj6GzWLKmKOzTtk=; b=crt7HayObhKJaa11QpdizmYe69N3FUQrif5YSbV/iZaj7O2B5oc9HwPpfLgOJZKWWF mn7SF+E6lqjmyXIsdcrbKCYYEJw1fnBGXznpSqIBAlRPa/fXjkbpkd0lCji8/UTPDykN LRlvYHoUsKaYCyCFJoBdjQKwWXSsPh6npZAbOZhCFCmwpISbHHXvPYtsJrdA+47PgUwp gr9qYoi8oGgGqgP4S88WwqyaIq/dxcRMuwcClV79f4v5aLDXEyrSJTbEELNbSUiez5N7 AWLSpteTYr/C0ktQl7yNMAV6QnKYNRJn2PY/7hrLoIrhHUc+XK0OgbhU6l2sN8LUBnX/ 2yrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cvEtRjExctTK1ZvEQqq6OPlvz1wSvj6GzWLKmKOzTtk=; b=ULgJD2HuouKO0H8gJ4dPn4X+WgdR320IDvj4HGnoQkC1T2BD+t12rYLK31kZbhHp2c 6MEXeKzJsUtG6eNA0RUktpJdShzBxte2Bn7iGmqrbWpNb6iWnTSUZjl+ey8sojgtbb16 uTqsYWFdutVpYkSc8GhCQvIELZcl5/tQ2FAr1hA2mf6iWxK4WgfJi1igSfVNI2gfRZT9 nW72eGOsEQ5VS6zNSlRIv1mqs1E+EoB8aYlq4YVUp5yswT10qvZJYWJzauPzv5xwnoaw KMDHDCAlpVIP+1gLr7dL8KLk/sLfZQE4BKIhibU5DkB3b/Dheb02rN2a731zupqwlwGo vghw== X-Gm-Message-State: ALyK8tK64tnje/IfkjqbIo9GJt9okaFPPtxZ2sndHWcdcIblgQsQiM5eY/1Wbcc5oj39Lw== X-Received: by 10.28.158.132 with SMTP id h126mr13689644wme.43.1466693859188; Thu, 23 Jun 2016 07:57:39 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD3CD1B0478F6703992958538.dip0.t-ipconnect.de. [2003:dc:d3cd:1b04:78f6:7039:9295:8538]) by smtp.googlemail.com with ESMTPSA id yr4sm535503wjc.18.2016.06.23.07.57.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Jun 2016 07:57:38 -0700 (PDT) From: Martin Blumenstingl To: ath9k-devel@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath9k-devel@lists.ath9k.org Cc: nbd@nbd.name, Martin Blumenstingl Subject: [PATCH 2/6] ath9k: remove variable which is set but never read Date: Thu, 23 Jun 2016 16:57:10 +0200 Message-Id: <20160623145714.20576-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160623145714.20576-1-martin.blumenstingl@googlemail.com> References: <20160623145714.20576-1-martin.blumenstingl@googlemail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP No functional changes - this only removes a variable which is set but never read. Signed-off-by: Martin Blumenstingl Reviewed-by: Julian Calaby --- drivers/net/wireless/ath/ath9k/hw.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 8b2895f..4f98ca0 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c @@ -474,15 +474,12 @@ static void ath9k_hw_init_defaults(struct ath_hw *ah) static int ath9k_hw_init_macaddr(struct ath_hw *ah) { struct ath_common *common = ath9k_hw_common(ah); - u32 sum; int i; u16 eeval; static const u32 EEP_MAC[] = { EEP_MAC_LSW, EEP_MAC_MID, EEP_MAC_MSW }; - sum = 0; for (i = 0; i < 3; i++) { eeval = ah->eep_ops->get_eeprom(ah, EEP_MAC[i]); - sum += eeval; common->macaddr[2 * i] = eeval >> 8; common->macaddr[2 * i + 1] = eeval & 0xff; }