Message ID | 20200826093401.1458456-16-lee.jones@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:522:0:0:0:0 with SMTP id h2csp4157003ils; Wed, 26 Aug 2020 02:38:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXtRXiQuFtJ+y7aAPDXFGV0R24IGtNpjoDoPdBxtqYDYrDNeF4GRvOQIPKstO6QiExa1RO X-Received: by 2002:a17:906:1589:: with SMTP id k9mr14396841ejd.115.1598434695799; Wed, 26 Aug 2020 02:38:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598434695; cv=none; d=google.com; s=arc-20160816; b=AMDy1a1ymSsHCurLLz1cvMkb54Xohv1y2//Tt4awWxxNQSJ11i+2fAsdSNGMxk6uxZ 6o7JGf9ZvHRrxVhx2dFsSTjM/WZNfl1KI3VMt0E/wSjcE3K9EsdQslZhBOXJ2vr8UYAr fG0Veoe1OKF6Q7j791D+jSPPfIyDwtAyCEJ2HwM3Gggu7EH6y1lEVOwvxDPL/Sr4O39q LUS3h4UQ48GyXhiXiJIiURJeX8dv2rKRNe4jkdH21vbdWJMSs6m9eQtwEyh4GMirUQHQ cYfY1dGPwcOFqQ9sYkckPY0pcnsFY0Hneb9WyTUnsYAD1kGzH3RrL27nWFGse8cQT9kJ MI+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Bx7yNWclgWagoUc19DO980I/LQpudxltdUcBDgMx82s=; b=EMRLTBVmwXxvc2HeyFltVkjEsA7WAevKS5wH5vAwo1jeAfi3NOmEPfV3rEoezijrGy +Fw3Kr7VVHEpaxI8qszLCPuH47oWj/HnfNkksOqwfS8Fmo0WfIB62R3SY3+5BUdYHbDr uQyxCq86QL19Hts7hnt1b90Hd1l4F27I5ir/LU8BhqVhMVCnGIDS3c21PP2+YbcytBn7 dv4eb32kqksrWLXtzTBxGzWbA5YuI4iiw/bLDXBzFnRu1t3WgQC2VyzyfCv/I5n5qB1K l/Yii0d8ec6wnDy7f27l5r02Y/Wzwq88k2bgB/lXC/iNG3sQNOP+v04oBSmOxPRuwJsj VJ+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uUJKLbTU; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <netdev-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk11si1173792ejb.450.2020.08.26.02.38.15; Wed, 26 Aug 2020 02:38:15 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uUJKLbTU; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728630AbgHZJiO (ORCPT <rfc822;patch@linaro.org> + 9 others); Wed, 26 Aug 2020 05:38:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728334AbgHZJer (ORCPT <rfc822;netdev@vger.kernel.org>); Wed, 26 Aug 2020 05:34:47 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D88DCC061795 for <netdev@vger.kernel.org>; Wed, 26 Aug 2020 02:34:24 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id a5so1093274wrm.6 for <netdev@vger.kernel.org>; Wed, 26 Aug 2020 02:34:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Bx7yNWclgWagoUc19DO980I/LQpudxltdUcBDgMx82s=; b=uUJKLbTU9CLl0GGHDJpGfj9qHXqTE3vmdSY72df5VY22nwMKPTB/gJEbRC16KsVj7V lqf/Msco72OZwC3/z43E9HJuCf6O4FXc4Ln2h+/SPuM85Apb34/d9LJm1+eeVSKbALFc c2rVrF2Sh84an294dpobLgvr2n7+wlJehzkTlL83PcF2HIXgrzahwnvouyL2GQg8BVCy YzEczRcmVW4jKWDL4pBiFlrSkNOCzvJm1JnA04lj/UemOevD3v2UMxrTXE53HxYDN0d2 mIfNdwOUuKYx7/GFEVMKTyGbyVQd+W2euTeJ/u8fddVeUrdSAHX+9rPgTn/5CayY333+ iGVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Bx7yNWclgWagoUc19DO980I/LQpudxltdUcBDgMx82s=; b=TjK55LzHwSEu0ZSxC2LNWucjYWvl6VCkssqlvWXQnofREmBCysmlvRqqnHOmdlVTh+ Ni6ZDM6p+AIj1YwaSNniuYX+IwIdxg9Ct8F3lpQWvGqcCCxsX/j36VuIQ8+qFDyKr9ud SWerDZ+vmlmuljmrvhAsgr2rnstixHHwsTaR/JGo6E4kiWq5Zxm4KZekrqVLEkWjlAHD HQammxqpIUXtWj5N/UJLFo6rPoGEy2bciDQXGC30FY4HQ1Scv3Qb0/S9qA9rFXdLD82P WQYd2jOYDhZyOZkdUthCGEgxJEc8E/oLG0Rzj0lP+uH6M7GTw1vQP2K/OODM+ZBu0kIc 8Ymg== X-Gm-Message-State: AOAM530npHLE5pfJ9HZ+hK2VbfSYDdr+sIhYiXnKTDNNK8ALj6UQIl09 3XSELUbYOA5qEIUxx2xdbotQkA== X-Received: by 2002:a5d:4050:: with SMTP id w16mr1517291wrp.412.1598434463554; Wed, 26 Aug 2020 02:34:23 -0700 (PDT) Received: from dell.default ([95.149.164.62]) by smtp.gmail.com with ESMTPSA id u3sm3978759wml.44.2020.08.26.02.34.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 02:34:22 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> To: kvalo@codeaurora.org, davem@davemloft.net, kuba@kernel.org Cc: linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Lee Jones <lee.jones@linaro.org>, Luciano Coelho <luciano.coelho@nokia.com> Subject: [PATCH 15/30] wireless: ti: wlcore: debugfs: Remove unused variable 'res' Date: Wed, 26 Aug 2020 10:33:46 +0100 Message-Id: <20200826093401.1458456-16-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200826093401.1458456-1-lee.jones@linaro.org> References: <20200826093401.1458456-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series |
[01/30] wireless: marvell: mwifiex: pcie: Move tables to the only place they're used
|
expand
|
diff --git a/drivers/net/wireless/ti/wlcore/debugfs.h b/drivers/net/wireless/ti/wlcore/debugfs.h index fc3bb0d2ab8da..b143293e694f9 100644 --- a/drivers/net/wireless/ti/wlcore/debugfs.h +++ b/drivers/net/wireless/ti/wlcore/debugfs.h @@ -78,13 +78,13 @@ static ssize_t sub## _ ##name## _read(struct file *file, \ struct wl1271 *wl = file->private_data; \ struct struct_type *stats = wl->stats.fw_stats; \ char buf[DEBUGFS_FORMAT_BUFFER_SIZE] = ""; \ - int res, i; \ + int i; \ \ wl1271_debugfs_update_stats(wl); \ \ for (i = 0; i < len; i++) \ - res = snprintf(buf, sizeof(buf), "%s[%d] = %d\n", \ - buf, i, stats->sub.name[i]); \ + snprintf(buf, sizeof(buf), "%s[%d] = %d\n", \ + buf, i, stats->sub.name[i]); \ \ return wl1271_format_buffer(userbuf, count, ppos, "%s", buf); \ } \
Fixes the following W=1 kernel build warning(s): Cc: Kalle Valo <kvalo@codeaurora.org> Cc: "David S. Miller" <davem@davemloft.net> Cc: Jakub Kicinski <kuba@kernel.org> Cc: Luciano Coelho <luciano.coelho@nokia.com> Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/net/wireless/ti/wlcore/debugfs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.25.1