Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1341428pxk; Thu, 10 Sep 2020 13:00:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxchGm0V5xpeEyH08uH/nRMkOIZzuCAPCB4B3xD9rr5zur7XLyEXme+B2+qyHIIFoB/Jy5 X-Received: by 2002:a50:d65e:: with SMTP id c30mr11318573edj.57.1599768032051; Thu, 10 Sep 2020 13:00:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599768032; cv=none; d=google.com; s=arc-20160816; b=mHeTfr6M0eU9CEQ+D9XRVjdZIxcML3mLuHgsl2lBOiPRJ8E0nO5UHbW142feenTD/n lFdTzH9gz62vIPTKWfof4dUQpwcgEtv1vrXa/DqLKTGVkwr/h17X8As57Ypr22lb78TK hbqUu1qh+woM3Ld0R0FvSFt8H7dVzQlUYv1Yo4M4PS/PzcDrK5gYQ/bmH99TN8VGZzU7 gBPECTDq6Bd7YVALy/xJw7osnPPy5Mx0wSKHCPTrTM7Aq72r6q/L2Aqd4DYq1DpE+BIK 7qUoFvKJqrPQeI32X2CtT/hG8gufCzpTg0Jp7pbECjL8/4zLrvdWHZbPPpJWJUAYJf1+ aZrg== 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 :message-id:date:subject:cc:to:from; bh=mMm/sLx+A5bl8VgF/cp558+XlzBaqQMbhwsL4Rr9pmA=; b=pVGfE0rSsJiNFe/Ux6uURw8DcjkIlMfVYe0VQdcRrLuwnvOxNNqcBCtYf8MJn5BbGL PNuJxw86vn/rEbhhc8V2tn0bXelsHlh7ZSCDj2uDI5dZVoqje/1urFwyOrwvOozEJQdy nCwbsBpxGQXWu5x/wrJozzYnZrCuqOmdy2TqVNxczML/VpYWrgg7mbzaz8HDR6RVme7N 98V1g14J9UO0jZ1tUtQAL+RSemGVdG0rU66XJKHigag02W/G3Cl4nXKGopj2EVpE6SPv xLabcp+LHBnbR4NJfYrv/QIm6eovC+ai+mop14RNgg4cl8K/rIxUD2JsPPZCEIrwidWB mHBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j18si4324870ejv.121.2020.09.10.13.00.08; Thu, 10 Sep 2020 13:00:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727037AbgIJT71 (ORCPT + 99 others); Thu, 10 Sep 2020 15:59:27 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:45084 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730465AbgIJPAp (ORCPT ); Thu, 10 Sep 2020 11:00:45 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 9B246581FA3E06A0396E; Thu, 10 Sep 2020 22:05:33 +0800 (CST) Received: from huawei.com (10.175.127.227) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Thu, 10 Sep 2020 22:05:25 +0800 From: Jason Yan To: , , , , , , , , , , , , , CC: Jason Yan , Hulk Robot Subject: [PATCH] brcmsmac: main: Eliminate empty brcms_c_down_del_timer() Date: Thu, 10 Sep 2020 22:04:46 +0800 Message-ID: <20200910140446.1168049-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This function does nothing so remove it. This addresses the following coccicheck warning: drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c:5103:6-15: Unneeded variable: "callbacks". Return "0" on line 5105 Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c index 21691581b532..763e0ec583d7 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c @@ -5085,13 +5085,6 @@ int brcms_c_up(struct brcms_c_info *wlc) return 0; } -static uint brcms_c_down_del_timer(struct brcms_c_info *wlc) -{ - uint callbacks = 0; - - return callbacks; -} - static int brcms_b_bmac_down_prep(struct brcms_hardware *wlc_hw) { bool dev_gone; @@ -5201,8 +5194,6 @@ uint brcms_c_down(struct brcms_c_info *wlc) callbacks++; wlc->WDarmed = false; } - /* cancel all other timers */ - callbacks += brcms_c_down_del_timer(wlc); wlc->pub->up = false; -- 2.25.4