From patchwork Fri Aug 14 11:39:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 247705 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp293177ilo; Fri, 14 Aug 2020 04:40:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzR6gcKT6fPr4rttFd9B2KKomN74eorfY7KOB76iihcbDyl31u29S9h8CdBzmKl4zb0pFzn X-Received: by 2002:a50:9316:: with SMTP id m22mr1860031eda.178.1597405233772; Fri, 14 Aug 2020 04:40:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597405233; cv=none; d=google.com; s=arc-20160816; b=bhA1+9vgahSlnOQWB5XkPokRy1amJlHuqg/KzEiZ3f3UoH6KnuGfHI0nLgzhmsDsd7 23CaFFRYfnLFmkTSK7bcFviVMvzmiNShVAjkCMkr5ut9qwwbyaJTE+wb+PqAitWVTb3k noeRyF09PilsWTSscrRHActVzdKgeXlIC/sm7NPFUxKpwnJVy3iuUgEREyPs5U+XJzbR 5iBa/YciRryRc1+36O+ObWF6Oz5HWF9TtebA8ns4P5t/AbRxg13GnP1skJB8QHckXd7u arA3yclytAGJ5pyg+YWCMAomAUr5JMYW3WGSXTvgkywQGDsBh1E4utan1/XwW7QPcG+m Gosw== 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=uoJdiMFnGqJL36MQX9//RZPgySw6yuwW0/4q6pcbpxI=; b=Xxbsf0ZuEpEXKnJGxoyeQASdxTudtutT8yrUXAp8D43HA5zxvt+9YxPcOWVcLN+Ieh TSg0wmLQ65tDuMs1YxkIMS3nVpNkTCb0PAFzHvPRjokl0P1q20dlngsT5lopQ8pWHQQk GkWWgmYkPLx7llMNHrG6u4mNrS+158GxQCPt9SLbddN2MfIsNU7Rbnzxzy4EbOhR7Udx AQRTVqo4bdbYHHIAJwKz7IuN//VLKBUFFIqp43Wd35gPaEf5C7OneQbwzNiM5h0niSnU USEOwyLZVnhLm5FIkzF9m9uDnP/mUvxtiKAB93OMvmvgVmZ7sxeVgbdeEmmGYgCMQ9XW xzvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z5jKBlju; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l13si4979068edq.209.2020.08.14.04.40.33; Fri, 14 Aug 2020 04:40:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=Z5jKBlju; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 S1728254AbgHNLk2 (ORCPT + 2 others); Fri, 14 Aug 2020 07:40:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728216AbgHNLkV (ORCPT ); Fri, 14 Aug 2020 07:40:21 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5AD9C061359 for ; Fri, 14 Aug 2020 04:40:15 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id x5so7216220wmi.2 for ; Fri, 14 Aug 2020 04:40:15 -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=uoJdiMFnGqJL36MQX9//RZPgySw6yuwW0/4q6pcbpxI=; b=Z5jKBlju35T6oTj3hxsY8oXDyw2EjocH3+UWqQor/nEHI1TLpiYZFG/+OYyJeEB2kQ 2T5fLfadZrwb1sv21VtNhRA340P+/omrcCtPRqMpkQYgK4yadwVCp0445v5cPAmh763H j5YBLXYXRAOCNNmh64LfTsD2uOriUrw6vnviTLGpxiEOrpG1ekLXmi8AgQI8prR2Aqxs s7lW4M9jtPTxSs+kyOc8G8e6dbJBjn4xy8MdKdarBpiuEyH8UCJ0XvLsIPuENKIWvugP AbxHOK8zN/OsOw+q2PC0O4sBNQWbtzl8r9pkEujXbg7bIIAQAuK+f3CjhEZ+4kPsaieI nIyg== 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=uoJdiMFnGqJL36MQX9//RZPgySw6yuwW0/4q6pcbpxI=; b=VKQ7FFHFzX1fq7nGZn+9BiHHLyuGcTMczYRL/Qo9HdAlZfqGt1fwoOd22aeHj1b/ZV tjwfZgWImaJPLKAuFQiC1/L2zE9VvexCW+oFrWVVPX5QAdiVEezLc+eawGUh9tiSEoKB SXJgchKMqkWkiDLxEsQGOnYrYfeMSK2WNm1cY9soQckkD6p64llrd6oW0lqSjQJ6O8Yb 8BiMkl0lXAUvpsaAeBYUahgocczmh6uS0ZF60MosxhvSiz5qekdeb2X8EGRKfN2tLQjS CL0q8I8I7pDQpX4rkyYJnXbIwgxJZQkYlEqYnkNs1wyeCqGXD2jsliB0eShEpbxlgULd ZEmQ== X-Gm-Message-State: AOAM532OA5E4cee3bpbr8ttXYUvlIsH33SUEpTpuNiW10UqreK4JQ9pq tzkhKw51rcOnxjnMFqZ1GMdT80WB0nFemQ== X-Received: by 2002:a7b:c14e:: with SMTP id z14mr2262670wmi.34.1597405214622; Fri, 14 Aug 2020 04:40:14 -0700 (PDT) Received: from dell.default ([95.149.164.62]) by smtp.gmail.com with ESMTPSA id 32sm16409129wrh.18.2020.08.14.04.40.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Aug 2020 04:40:13 -0700 (PDT) From: Lee Jones To: davem@davemloft.net, kuba@kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Arend van Spriel , Franky Lin , Hante Meuleman , Chi-Hsien Lin , Wright Feng , Kalle Valo , "Gustavo A. R. Silva" , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, brcm80211-dev-list@cypress.com, netdev@vger.kernel.org Subject: [PATCH 22/30] net: wireless: broadcom: brcm80211: brcmfmac: fweh: Remove set but unused variable 'err' Date: Fri, 14 Aug 2020 12:39:25 +0100 Message-Id: <20200814113933.1903438-23-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200814113933.1903438-1-lee.jones@linaro.org> References: <20200814113933.1903438-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c: In function ‘brcmf_fweh_handle_if_event’: drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c:131:6: warning: variable ‘err’ set but not used [-Wunused-but-set-variable] Cc: Arend van Spriel Cc: Franky Lin Cc: Hante Meuleman Cc: Chi-Hsien Lin Cc: Wright Feng Cc: Kalle Valo Cc: "David S. Miller" Cc: Jakub Kicinski Cc: "Gustavo A. R. Silva" Cc: linux-wireless@vger.kernel.org Cc: brcm80211-dev-list.pdl@broadcom.com Cc: brcm80211-dev-list@cypress.com Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.25.1 diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c index a5cced2c89ac6..6f74567c7bd72 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c @@ -128,7 +128,6 @@ static void brcmf_fweh_handle_if_event(struct brcmf_pub *drvr, struct brcmf_if_event *ifevent = data; struct brcmf_if *ifp; bool is_p2pdev; - int err = 0; brcmf_dbg(EVENT, "action: %u ifidx: %u bsscfgidx: %u flags: %u role: %u\n", ifevent->action, ifevent->ifidx, ifevent->bsscfgidx, @@ -171,8 +170,8 @@ static void brcmf_fweh_handle_if_event(struct brcmf_pub *drvr, if (ifp && ifevent->action == BRCMF_E_IF_CHANGE) brcmf_proto_reset_if(drvr, ifp); - err = brcmf_fweh_call_event_handler(drvr, ifp, emsg->event_code, emsg, - data); + brcmf_fweh_call_event_handler(drvr, ifp, emsg->event_code, emsg, + data); if (ifp && ifevent->action == BRCMF_E_IF_DEL) { bool armed = brcmf_cfg80211_vif_event_armed(drvr->config);