Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp392804ybb; Fri, 10 Apr 2020 02:10:46 -0700 (PDT) X-Google-Smtp-Source: APiQypKmoH9/m0Dpk/YvY6D0Bv0ihemQ+wbLlqoP+ebNSqyD3lIv3jR9u/aSTlFqBHyd0mHzYL5H X-Received: by 2002:a37:2d83:: with SMTP id t125mr3146516qkh.359.1586509846389; Fri, 10 Apr 2020 02:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586509846; cv=none; d=google.com; s=arc-20160816; b=C85DLj4flJwvcgZWZs+1IGaeQ+VT6bFuQQAJSLgeqp5YTxBRlsy8DoAFt5wo2csr77 Ah/IkaTTyxrrnZzm+QzIywwsQqznA2AfGL4jY+ZYIZvj7bvZNgymU2yaH6AoIfnTgtIc kJLY3fB5jPkt5xucbf20892ruhDlE2uKxrhHq+p+Cooy6syJ0tLG2jFwS4SpWYJCTkj1 EMThjqRLsdZDsDVtiALB7xfdFTq9PZ/Gj4jy4/gdIi7yiDCCDAm3C26QZgAz0xREMW+x fK32mdgPtqxWnwd0i7x94n+J86o3jQl7zOtN4xOK4ChBttEOlSc0zHUbwG961kzsFWzo 2LGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:to :from; bh=2hIDTaNZ0nCYnBPBB3ivjG809Vrl70G9qXwVF5dqsdE=; b=FQQcGCheTHKJ1CUofxYe5d0pPZJ3mlNTQ81H5SHShp28qZ9Uc9fFGiXACKHlLWoQk2 3FeJEbBWWr1tvD59yJJdHkAemDlfz1ie1WQNBLpAOGhDnm74LfIEczdmL/7yKgP34Nnp yAh18wdmvjzXeg3wDder/uDYdKpz/sDR7pQAVX6BL+D4XKYXJn78WrF4bYmJ87VV6jel ZI2lrByAo9PzovaISqMsCmF4qxS5gXJvcwUPQV7bNEqKWDCbOhrR+m1Smc6PiAUCKPF9 zCaoJsxQdzf5Ae23ffM/qBEy244SQGkI57wwx8Q+IATbYUGag5EF5SKeto6NRWdMPjMU yZ2g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i91si381497qtb.121.2020.04.10.02.10.30; Fri, 10 Apr 2020 02:10:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726082AbgDJJJy (ORCPT + 99 others); Fri, 10 Apr 2020 05:09:54 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:12639 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725897AbgDJJJy (ORCPT ); Fri, 10 Apr 2020 05:09:54 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 58F9DD4A46EC7164605F; Fri, 10 Apr 2020 17:09:53 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Fri, 10 Apr 2020 17:09:44 +0800 From: Jason Yan To: , , , , , , , , , , , , , , , Subject: [PATCH] brcmsmac: make brcms_c_set_mac() void Date: Fri, 10 Apr 2020 17:08:17 +0800 Message-ID: <20200410090817.26883-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c:3773:5-8: Unneeded variable: "err". Return "0" on line 3781 Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c index 7f2c15c799d2..d88f8d456b94 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c @@ -3768,17 +3768,14 @@ static void brcms_c_set_ps_ctrl(struct brcms_c_info *wlc) * Write this BSS config's MAC address to core. * Updates RXE match engine. */ -static int brcms_c_set_mac(struct brcms_bss_cfg *bsscfg) +static void brcms_c_set_mac(struct brcms_bss_cfg *bsscfg) { - int err = 0; struct brcms_c_info *wlc = bsscfg->wlc; /* enter the MAC addr into the RXE match registers */ brcms_c_set_addrmatch(wlc, RCM_MAC_OFFSET, wlc->pub->cur_etheraddr); brcms_c_ampdu_macaddr_upd(wlc); - - return err; } /* Write the BSS config's BSSID address to core (set_bssid in d11procs.tcl). -- 2.17.2