Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp254777ybz; Fri, 17 Apr 2020 00:09:49 -0700 (PDT) X-Google-Smtp-Source: APiQypLEsNtXBiZkrcMQIL3BFwTogyzkC/Y/sclGtYiAzl5VqyOlDzlO2t/M2pAvbBag4qeK6iBa X-Received: by 2002:aa7:d745:: with SMTP id a5mr1691028eds.43.1587107389478; Fri, 17 Apr 2020 00:09:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587107389; cv=none; d=google.com; s=arc-20160816; b=ap/LpyjeMFMVxY/loLt9E/1vrjWAOvQdNqVZt9RRFITHTp3UrQsc9L/rJ3RY19+FKV n5TF8+rIbdw/d/FAbMmyhM6uNb1OxSKoLJjCOnUN19t8VqvGSJwDQrqGGLnDouXt4/CW IQG0cNWd9Ecz9TsWtl4wxt1dGQ3wdq3GpRAzUgWvaw3l7WES0YQ0v3nvZ+pxPpELSufa 3xt2KgmX+TyRhp54F7fUeRDscOoETa8GwcY2en65SuQuU+fpMLpFD+ApgSs+u7CGsPwM lXUIfB7DgbJUiV6bzY7TwXmfzfez+dQrD4U26z4/lUnV27Ii/XA3LFqVh0Fq5932JsHG Vg9A== 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=Ilb6XKiiD92VsWW9HQObrg6HEAdY7AqfyJAnVTzq7Ug=; b=FWMiC187ZpysSSsKblb5/VbpEo8SBnrsWVksiMYhWk/8GGJJucGLFS3wRpf70aIbLL JaUqxKWK0f0W0Fb1ajiD+k4/aAGgWGcb+4QAQyVDcII8Lq7TNE/NPnULem/xQBQ1uC73 pn8BFQ8zX+aPoCg/pX8e3GdAiFt8FWTsXjsfvCwmsjhgMjqkHbdjoB5WQu/luX8W2vUC TvLtVtyLqFpllb/LQ13Ir4b9ysNrpLCGwzFxvgkqJOYZXLxvn6wgZKPaCr3yBfehQDi0 cL3hE2HqSPFpzQpbwnQFghoaKjbDeaNiegnE1R8x/8l6YjXM362SvF8hEJsszkLZmbWD LhhA== 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 rv23si12279397ejb.330.2020.04.17.00.09.26; Fri, 17 Apr 2020 00:09:49 -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 S1728712AbgDQHIX (ORCPT + 99 others); Fri, 17 Apr 2020 03:08:23 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:40684 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728449AbgDQHIW (ORCPT ); Fri, 17 Apr 2020 03:08:22 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id B3121971BA29CF053A3; Fri, 17 Apr 2020 15:08:21 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Fri, 17 Apr 2020 15:08:13 +0800 From: Jason Yan To: , , , CC: Jason Yan , Hulk Robot Subject: [PATCH] staging: rtl8723bs: remove defined but not used 'dB_Invert_Table' Date: Fri, 17 Apr 2020 15:34:39 +0800 Message-ID: <20200417073439.41888-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/odm.c:10:18: warning: ‘dB_Invert_Table’ defined but not used [-Wunused-const-variable=] static const u16 dB_Invert_Table[8][12] = { ^~~~~~~~~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/staging/rtl8723bs/hal/odm.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/odm.c b/drivers/staging/rtl8723bs/hal/odm.c index aa6631ee4ea7..f2a9e95a1563 100644 --- a/drivers/staging/rtl8723bs/hal/odm.c +++ b/drivers/staging/rtl8723bs/hal/odm.c @@ -7,19 +7,6 @@ #include "odm_precomp.h" -static const u16 dB_Invert_Table[8][12] = { - {1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4}, - {4, 5, 6, 6, 7, 8, 9, 10, 11, 13, 14, 16}, - {18, 20, 22, 25, 28, 32, 35, 40, 45, 50, 56, 63}, - {71, 79, 89, 100, 112, 126, 141, 158, 178, 200, 224, 251}, - {282, 316, 355, 398, 447, 501, 562, 631, 708, 794, 891, 1000}, - {1122, 1259, 1413, 1585, 1778, 1995, 2239, 2512, 2818, 3162, 3548, 3981}, - {4467, 5012, 5623, 6310, 7079, 7943, 8913, 10000, 11220, 12589, 14125, - 15849}, - {17783, 19953, 22387, 25119, 28184, 31623, 35481, 39811, 44668, 50119, - 56234, 65535} - }; - /* Global var */ u32 OFDMSwingTable[OFDM_TABLE_SIZE] = { -- 2.21.1