Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp430644pxb; Sat, 10 Apr 2021 07:22:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygLP0hpL/E+Vs93nmpObVeiP3tQg/PCKlUEKGN+T7UCmSmFxg9ZZgMedPVFsOCHUE8TJdD X-Received: by 2002:a62:f84a:0:b029:245:17e4:bde2 with SMTP id c10-20020a62f84a0000b029024517e4bde2mr11186499pfm.64.1618064562627; Sat, 10 Apr 2021 07:22:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618064562; cv=none; d=google.com; s=arc-20160816; b=oeiCSsziw/MPpR/kxeGPvSrMGci1BhoVu9Txvw6QdpVmDmgepxT0NC7YvDR4+cWGyM ayQo6qou0pJ/n13BYljreLDpwIzk4lpwf82BTRslfWteYZ8/Oy5UtOB3JVu5Ycg1PPgE dRdi+HIXxorERor4oUFvoVGK+nXbMKaOtzwajDWPvEyM9WAQO9Y/AVzGSYgKToDMu7Q7 5TEf2Togzadsfrkr7DQg/9/a0vor/RvAxO0btWR86+Z4Eda5WYC7snY/DgHcSQPFLL8k MfbYMxDVMkj/qixSJ4TBd9iVBG77LrGnL8I1ALQ19RuLL9CyB5y+lCTq8xIqYPa0LoI0 upNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PMoQZyndPwufvmDjpeBnGU4sgUe/qCXCw/wqqLdfTzs=; b=vlIyIjfXmcGgDch00Pm5Czr+YFwSUtvsGAe9MQX1GCTzpQMpgS6NCfeu9ffNTwMUTN 0uJnKwJHKwdF4JCvi+oYpxyor692IZPJSpVxDsJ0whhBRQqKEQvpwQmYXylkq44cakUT nSi52i1u0E+6ZWv4g85duMJu2gylo2+JgnY6tIy2SUoZFmSChdCRbv5ZDCAGx60LD1sz dsjFRHhvH6WX8ujaHIrAz1kS7A0j/R0D3lnCEz2hKv8dgnwdLBEEi3XApIjDCaxkGtod A7Qstsh4w32jeExzbBqQwbJmhivPdyr25fVCTnAdhmk+RnQe4Zrz29pDfqnI1ghbdDVr 00Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PRmiCJHV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q12si6714698plk.153.2021.04.10.07.22.28; Sat, 10 Apr 2021 07:22:42 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PRmiCJHV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234925AbhDJOVS (ORCPT + 99 others); Sat, 10 Apr 2021 10:21:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234868AbhDJOVK (ORCPT ); Sat, 10 Apr 2021 10:21:10 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B7B3C06138E for ; Sat, 10 Apr 2021 07:20:55 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id n2so13019732ejy.7 for ; Sat, 10 Apr 2021 07:20:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PMoQZyndPwufvmDjpeBnGU4sgUe/qCXCw/wqqLdfTzs=; b=PRmiCJHVqIqpEh3pzHzwHcCj5YNpw8rtpr87dOgn0pHCmC5H9T8xItXmaVkUTrChkI QVXBQJvT1KCeiKPAHx+75wT+hY2b77RDJJAlns58Ny4383CvcsxBKVvWYgpBKt2WFo/s /fVOBLx6HDJhvSawC4rJafQlUbrGw6uCX+nj+s9dw1z3vNWW7j5BadZIpfETR79DV8Ew hZh16ukBMbitJeFU5BsfQUKIp51sWwEsk1YG0nQQai46oc1la3tzCBnK0tq0fExELHsl +ud85IWP/Dou3y+jgi4n9G7+whibybOXgR0gsqOE4puqJhR2b2xmiZ0CGT9PEJAVw2W7 SS7w== 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=PMoQZyndPwufvmDjpeBnGU4sgUe/qCXCw/wqqLdfTzs=; b=mBriNh0XY9EFSnNQUWXB52hoai6bq6KZFS/JHt+ItX8LnnscCCK4FTRGP/d9aER8+J YMRT46LJVovB6fuze+7Kp26Pi6I4REv+qslugt/VPRYOgJiZTDQOnELnx5iWkuSdjzvp o81VTx5zbK315RKrgxOf2vALWgX5/t3Nikxh5+1iwxN3L2UFC5kgjBa9ji28XlnCsF1O gSj8HATiODQnusfL6JeeD3GTRlEqe/pbzAQ8KLbqFoJaEvgrR+3Nte6LaRpol17QeFRP Il4G85Cu5q6/WijJqouPfjT35BfTC6t06pP/qD6gmWWVrk+WcHvcq/b6iY9vvj386Dx2 WjkQ== X-Gm-Message-State: AOAM531d04JhiknL0xuGkTtA7lq0SC5dXJR3wR8X53FsJhhgcRp/YwKR vwIGpS4yqbbQJcA4AIaJqkPlZeMjdeVFsw== X-Received: by 2002:a17:906:f9cc:: with SMTP id lj12mr19734300ejb.544.1618064453494; Sat, 10 Apr 2021 07:20:53 -0700 (PDT) Received: from agape ([5.171.81.28]) by smtp.gmail.com with ESMTPSA id gq9sm2759404ejb.62.2021.04.10.07.20.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Apr 2021 07:20:53 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 08/25] staging: rtl8723bs: remove code blocks guarded by DEBUG symbol Date: Sat, 10 Apr 2021 16:20:21 +0200 Message-Id: <381da3f0c1ddf825b2aa7cbfd074ee2bf42aac4f.1618064274.git.fabioaiuto83@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org remove code blocks guarded by DEBUG symbol remove undefinition of DEBUG Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c | 5 ---- .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 25 ------------------- drivers/staging/rtl8723bs/include/autoconf.h | 5 ---- 3 files changed, 35 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c b/drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c index 2c50ff2d16f6..9876de3a3360 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c @@ -928,11 +928,6 @@ void rtl8723b_download_BTCoex_AP_mode_rsvd_page(struct adapter *padapter) u32 poll = 0; u8 val8; -#ifdef DEBUG - if (check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) == false) { - } -#endif /* DEBUG */ - pHalData = GET_HAL_DATA(padapter); pmlmeext = &padapter->mlmeextpriv; pmlmeinfo = &pmlmeext->mlmext_info; diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c index 30845235c7a4..6487aa7bc5e9 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -754,21 +754,6 @@ static void hal_ReadEFuse_WiFi( /* 0xff will be efuse default value instead of 0x00. */ memset(efuseTbl, 0xFF, EFUSE_MAX_MAP_LEN); - -#ifdef DEBUG -if (0) { - for (i = 0; i < 256; i++) - efuse_OneByteRead(padapter, i, &efuseTbl[i], false); - for (i = 0; i < 256; i++) { - if (i % 16 == 0) - printk("\n"); - printk("%02X ", efuseTbl[i]); - } - printk("\n"); -} -#endif - - /* switch bank back to bank 0 for later BT and wifi use. */ hal_EfuseSwitchToBank(padapter, 0, bPseudoTest); @@ -818,16 +803,6 @@ if (0) { for (i = 0; i < _size_byte; i++) pbuf[i] = efuseTbl[_offset+i]; -#ifdef DEBUG -if (1) { - for (i = 0; i < _size_byte; i++) { - if (i % 16 == 0) - printk("\n"); - printk("%02X ", pbuf[i]); - } - printk("\n"); -} -#endif /* Calculate Efuse utilization */ EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_AVAILABLE_EFUSE_BYTES_TOTAL, &total, bPseudoTest); used = eFuse_Addr - 1; diff --git a/drivers/staging/rtl8723bs/include/autoconf.h b/drivers/staging/rtl8723bs/include/autoconf.h index 222297a937ab..074fee2052c9 100644 --- a/drivers/staging/rtl8723bs/include/autoconf.h +++ b/drivers/staging/rtl8723bs/include/autoconf.h @@ -44,13 +44,8 @@ /* * Debug Related Config */ -#undef DEBUG -#ifdef DEBUG -#define DBG 1 /* for ODM & BTCOEX debug */ -#else /* !DEBUG */ #define DBG 0 /* for ODM & BTCOEX debug */ -#endif /* !DEBUG */ /* define DBG_XMIT_BUF */ /* define DBG_XMIT_BUF_EXT */ -- 2.20.1