Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3566667ybg; Mon, 28 Oct 2019 15:05:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGfsu+rtymETEoRjFV5//HzIQ+b7bOPgEGpTgP+ZDueUq/7OE4/8ijd/CSMZYg5ZGXuOsg X-Received: by 2002:aa7:cdc6:: with SMTP id h6mr22337671edw.243.1572300337253; Mon, 28 Oct 2019 15:05:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572300337; cv=none; d=google.com; s=arc-20160816; b=lpYKGxY0kcZFGEmSTQbnxGv5daV3nJ/qAjwo1onG1Qz1P6jTMNGvLTIW1bBYebDl2+ iQoMvFMUbZedWUQMDDNtcWBu5H5ly8jvwCA/ah2l7MLgc64khAiDHBF/EngB8qGidQ3U FTGpRy4nsLFVpTFMDEwK8HCaZcKhscVB1zY59Ig0yCJJ8Uf1K8q2SMFqYJ4hmj6RjcoL v2PjAiihYri9Fsnzkt5MYgjL4gQwXzcYxf0CM1i493hp0mAgZ8m1wgDmKs6Bolw6/rYi x2Jb1TONzkYsCLcwDlqp+F+FkuxH/amNn6SXYBXSM1rlodbWs32Bbf+eQAWg2iHTXz6y CMqA== 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:dkim-signature; bh=n0RrC7uGX/gZgkVMszycwSOKKQggxsrTHESmgPdcSao=; b=BJUb+oNiRvMp80eUNqCPKLWEF4w4cGwSohXqIaoYph2jKVKJJr0++hfVuW4RsoLFUH 46qcKklsOHLBt7PN61vojjiPy86am01RnHwNwWPo7gJTMYK5lbVhSENAA1xRcCcW3RTX Alv5hqXqi3XzRpk+HC+/K3cSUnZXtHmUG8FWvjK+cOCMmLbm+1wfSOV8kHWmzU5r+0CM 9H5lA5guHNzztp2+OEzotQ9QKdLP8/QiK+D23QClwTsRI7+EJJqz83r6qdVOfNSot/Ko clDXHrJcWeZ69qcbUIO/J2YhEAyH+lz5kcjnKTWhO/zg7ZCyjX5O3PXMdSvGhPzBNzLp utnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JVO5gCo+; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g15si2142287edl.95.2019.10.28.15.05.13; Mon, 28 Oct 2019 15:05: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JVO5gCo+; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730434AbfJ1TXU (ORCPT + 99 others); Mon, 28 Oct 2019 15:23:20 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:37996 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728941AbfJ1TXU (ORCPT ); Mon, 28 Oct 2019 15:23:20 -0400 Received: by mail-pg1-f196.google.com with SMTP id w3so7567289pgt.5; Mon, 28 Oct 2019 12:23:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=n0RrC7uGX/gZgkVMszycwSOKKQggxsrTHESmgPdcSao=; b=JVO5gCo+FGFjlOMHBcxSq53Vv41uaRmbgVkGHkBtMpnvMnOyAF/nFx30yNzJUN8PHd UKnOLa6bvQOcLPPFd3/hu/KPDaD77nsRTwiT/TeW+cuyjRhw/aqVFmturud8jQq3wO4Q 3oot5uzAeHHwnxHn8rAU8Qd3AKSVteeMn62Bxee+pOt96Ni4bqs+0JUrjtBfYHYmuZUb eTO/Ow2QZ6ZekVefAewGlrBHZR3oo5pNvfFshRTufHFpRILEo4AKg5jL8KscSeNXu3U6 xRvmNm6iCrQD/2gjt+N+YIFPzs/blpKaO+VhzMlS0ehow7EgxGK87TY6QU8XfpX2P3rl Xbow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=n0RrC7uGX/gZgkVMszycwSOKKQggxsrTHESmgPdcSao=; b=OmPb6a8W35Je5UFmPS6G9ILSICE0a1taU7mcfPz+SS6IvMSCKJN+3aqRIV5Apbplhx YfD3SrGhjfVX7nWFhCHtmhKIIrnRRX2eFkMLqA2FoRk+GOxrRc4trylM4Rh3zninW9S4 MA+Y6rCtluSM+Zy8OeTy1kIdljAC4iNmJELLmh83s06oKJ6OaFlaDjAix2gDEgdyAXPf YT7sFCDVs/lcmM5g8Deq136vJ9MZilSJgWbFBwZN0kYqw71I0d1PCK4j/UcYPGNnkGtj 7oxFJjoJR+LfLn7LyvrTB5iF4DXcsWvSN4gJ/4WDBQzPUW/x2SutpV007y5JroRFiKyO kXBQ== X-Gm-Message-State: APjAAAWO6IbJBNdIphE5zEiWRr69nTZnpRzhZEEItwK3ouKOZxkdC/dZ Juq53Wp6FPHuFRvcQKymn50= X-Received: by 2002:a17:90a:8a0e:: with SMTP id w14mr1146969pjn.51.1572290597879; Mon, 28 Oct 2019 12:23:17 -0700 (PDT) Received: from saurav ([27.62.167.137]) by smtp.gmail.com with ESMTPSA id d127sm6035142pfc.28.2019.10.28.12.23.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 12:23:17 -0700 (PDT) Date: Tue, 29 Oct 2019 00:53:10 +0530 From: Saurav Girepunje To: jirislaby@gmail.com, mickflemm@gmail.com, mcgrof@kernel.org, kvalo@codeaurora.org, davem@davemloft.net, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: saurav.girepunje@hotmail.com Subject: [PATCH] ath5k: eeprom.c: Remove unneeded variable Message-ID: <20191028192310.GA27452@saurav> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Remove unneeded ret variable from ath5k_eeprom_read_spur_chans() Signed-off-by: Saurav Girepunje --- drivers/net/wireless/ath/ath5k/eeprom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath5k/eeprom.c b/drivers/net/wireless/ath/ath5k/eeprom.c index 94d34ee02265..307f1fea0a88 100644 --- a/drivers/net/wireless/ath/ath5k/eeprom.c +++ b/drivers/net/wireless/ath/ath5k/eeprom.c @@ -1707,7 +1707,7 @@ ath5k_eeprom_read_spur_chans(struct ath5k_hw *ah) struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom; u32 offset; u16 val; - int ret = 0, i; + int i; offset = AR5K_EEPROM_CTL(ee->ee_version) + AR5K_EEPROM_N_CTLS(ee->ee_version); @@ -1730,7 +1730,7 @@ ath5k_eeprom_read_spur_chans(struct ath5k_hw *ah) } } - return ret; + return 0; } -- 2.20.1