Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp254475ybz; Fri, 17 Apr 2020 00:09:24 -0700 (PDT) X-Google-Smtp-Source: APiQypLbEmsixI59S3a/Yg0r6Azq7A5ui+eTUHRE1iF7AkAlULbhkDD3u48088IWzsknPD0+agqh X-Received: by 2002:a50:abe2:: with SMTP id u89mr1683990edc.259.1587107364304; Fri, 17 Apr 2020 00:09:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587107364; cv=none; d=google.com; s=arc-20160816; b=cpvc3ROY/GwQ0pG0/JWiJfimags3mjeRHwMYXx8xY+2zmv8qDimxTIygXzYICLJ7a2 fhbVTtRQRm7UrNoAP2cwlhQZs97T761iVTTZ7fitnhTaNDln641k9+yck4/32tHpFIVn UNP/3b9zslcmAHhOQwiPr8nPNtrQHHi8C9pifAcbvsqZUjq4Ttus8skdPRdDnUHU0k8m v8wTPrC850IMIat+a57idkjXfymtZPbEqqV9JN4ER+Upp5am0+D1koM6DbizpE/5R3JE Al1/5qzVstqWiPNZmc6tsHDXRkm5cDWF5bmIanpehw2vDsrLn5tD7UzKaYHGic5G2GXe 8R+g== 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=G/D4cycoTMIRBFNu2R0BfU+Vb/wpYjDt0/uAfCvjbOY=; b=dQ0slWWGW2gQm2ZBBGJtvCNE4jgtxKyq3JMKlWucYXIUayiHxqv44Au73mLw3RPSqL RgPZnB6xYeJidwg+T+pvshfbNNnyggNh+UAjigXUvIfW774iVtZYwpF3gMaPNYaRFbSv p7BHlVtcDZ3Tq+rrLw9cB0nKqZ5FbDv7K2XvrgcODGkC1aZo0m9txuHr9EVs/V5vKqGF N03/1LjVd5UJFekbNvXKQyY4CpVzsWHuvQJ28l8P5aq4LR+4MYrm8eAcIal73qND5m9g /2XBBbb1TDTYAmoHhhswj8MNqg+dkDl0+TW/PyR3BJyHMEOWQhczp2/gEcP+5R0cJPg1 u4dw== 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 ca3si5436230edb.164.2020.04.17.00.09.01; Fri, 17 Apr 2020 00:09:24 -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 S1728583AbgDQHHu (ORCPT + 99 others); Fri, 17 Apr 2020 03:07:50 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2389 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728105AbgDQHHu (ORCPT ); Fri, 17 Apr 2020 03:07:50 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 37AB0F6534BED5201DE4; Fri, 17 Apr 2020 15:07:48 +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, 17 Apr 2020 15:07:40 +0800 From: Jason Yan To: , , CC: Jason Yan , Hulk Robot Subject: [PATCH] staging: rtl8723bs: remove some variables in hal_btcoex.c Date: Fri, 17 Apr 2020 15:33:10 +0800 Message-ID: <20200417073310.40893-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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 gcc warning: drivers/staging/rtl8723bs/hal/hal_btcoex.c:45:26: warning: ‘ioStaString’ defined but not used [-Wunused-const-variable=] static const char *const ioStaString[] = { ^~~~~~~~~~~ drivers/staging/rtl8723bs/hal/hal_btcoex.c:38:26: warning: ‘h2cStaString’ defined but not used [-Wunused-const-variable=] static const char *const h2cStaString[] = { ^~~~~~~~~~~~ drivers/staging/rtl8723bs/hal/hal_btcoex.c:33:26: warning: ‘BtLinkRoleString’ defined but not used [-Wunused-const-variable=] static const char *const BtLinkRoleString[] = { ^~~~~~~~~~~~~~~~ drivers/staging/rtl8723bs/hal/hal_btcoex.c:23:26: warning: ‘BtSpecString’ defined but not used [-Wunused-const-variable=] static const char *const BtSpecString[] = { ^~~~~~~~~~~~ drivers/staging/rtl8723bs/hal/hal_btcoex.c:15:26: warning: ‘BtProfileString’ defined but not used [-Wunused-const-variable=] static const char *const BtProfileString[] = { ^~~~~~~~~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/staging/rtl8723bs/hal/hal_btcoex.c | 43 ---------------------- 1 file changed, 43 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/hal_btcoex.c b/drivers/staging/rtl8723bs/hal/hal_btcoex.c index d5793e4614bf..a6ed1bb9945e 100644 --- a/drivers/staging/rtl8723bs/hal/hal_btcoex.c +++ b/drivers/staging/rtl8723bs/hal/hal_btcoex.c @@ -12,49 +12,6 @@ #include /* Global variables */ -static const char *const BtProfileString[] = { - "NONE", - "A2DP", - "PAN", - "HID", - "SCO", -}; - -static const char *const BtSpecString[] = { - "1.0b", - "1.1", - "1.2", - "2.0+EDR", - "2.1+EDR", - "3.0+HS", - "4.0", -}; - -static const char *const BtLinkRoleString[] = { - "Master", - "Slave", -}; - -static const char *const h2cStaString[] = { - "successful", - "h2c busy", - "rf off", - "fw not read", -}; - -static const char *const ioStaString[] = { - "success", - "can not IO", - "rf off", - "fw not read", - "wait io timeout", - "invalid len", - "idle Q empty", - "insert waitQ fail", - "unknown fail", - "wrong level", - "h2c stopped", -}; BTC_COEXIST GLBtCoexist; static u8 GLBtcWiFiInScanState; -- 2.21.1