Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp335538pxf; Thu, 1 Apr 2021 02:23:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7JxP32GsION+VyctRnwydqorCCiF4QCp0cj78Ce2F/yCy/waCz/kpK39tamr2T2sf00So X-Received: by 2002:a05:6402:170f:: with SMTP id y15mr8752562edu.127.1617268997311; Thu, 01 Apr 2021 02:23:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617268997; cv=none; d=google.com; s=arc-20160816; b=Tr7WfhQjjP4wq6ggKtJLq4mgl6QgaP5Gm1lHhadJ1Cfcr3TeU7nPVMoMZdcnVnxgJg T+5TLohUvrnFLjlJChvwtSnXcSV7rIS1n4JaQLyibUS1TBRLoWSDN+UvNwW31XPgDWVF 3e5l2raOL6K7+/q1cGFE7zkBWWewJzkZ4o5l9QbE6AxXZ9wJtyg8Tj7bbiAWKB2yfXjt 35S5bZ1eyvVg/ya1UfVY5yBulKz/7lVaF6afc3WAiOSKnlqQqgZPbyVpfMt8G95jf9ZD AT7VVppjoihiGLK0UOiRwVnAz1PI1ug6uu87JO2LW/vi/IvDrNbM4SDXt7RQR0MkR0DX 56IQ== 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=cJGiJpGnSxpfcjJ2NKRs2PospuA2P2kCoA4H2fFeYoU=; b=wYpwY4eKVBGW4qoy7QHHXSEwKUasjP/81Iy3xcA2mrDoofim5MX0DapuQxtJnw5Ia1 QdKf9p7zM5aOyKoZ3ycmdMBePfpTLtZfkWF+u3xXW/tOeVAMgUzK6UxUw8WdJ+y57sB3 g5rlRQ6I85JkT8VYfnjLe7GLi+oSO8hzjG9X0T0L+Rk/kssPEc33fQllkngNrgwO5pB8 ffTPlwd3ihVfZ6xQhImHTvw6qyCcAdpEf/7mIUGb1azUUkBgVk80QPOjwkoBqpvbudzB FZ6jXNJtbkNEfMlvsk50c6YmNl+XgnZhuEMpFwXBggiGF/UOUHJPpzG9HrA0gzgGF5e2 S4pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QakcbMYD; 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 bc18si3901145edb.79.2021.04.01.02.22.55; Thu, 01 Apr 2021 02:23:17 -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=QakcbMYD; 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 S233917AbhDAJWU (ORCPT + 99 others); Thu, 1 Apr 2021 05:22:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233643AbhDAJVd (ORCPT ); Thu, 1 Apr 2021 05:21:33 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B713C0613E6 for ; Thu, 1 Apr 2021 02:21:32 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id hq27so1825382ejc.9 for ; Thu, 01 Apr 2021 02:21:32 -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=cJGiJpGnSxpfcjJ2NKRs2PospuA2P2kCoA4H2fFeYoU=; b=QakcbMYDHq6fCx2OCzxWmswGypW4EKbF6xwAm8I9Xa0hWA6UkzOvJQMv6QVing+uMz fGK9s4nCVtwm9v0L+yIXXFl8TgJOMQEh9WJ7OSvXJtf9IXHofb4GecETawLD7bKURoD8 KtZe24s37KIelomuj36+6GasgwuaIQymB4FY+m9uTYPH2TIDmZpgzE/IMT+HZql4lk1g Fkh/VGLF/5AjlUlSghBVnrJjUC26i+6cg0+vlZngyERZyVG9mSmiXDiIYTgt0iWz5kb8 V1945w6X8xLu3N5vrpjVoI31aLtqztG1Btgl95yb6ZntyqWb9AdtXvrTxqSu9SyNmT1w hQcA== 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=cJGiJpGnSxpfcjJ2NKRs2PospuA2P2kCoA4H2fFeYoU=; b=TrnVzeozBgzTeBGTConWHksbBfjq4kayKLAXIeIUFEMZzvSlxwMYmsfiFn3/8qnE1w MQyVDfisix678mXmW3DoPuU81v8FNSs5lNuOZn5LZEfgx1YsmZz8zskTGxPUdKzzMY/9 5utXdCWgSIDT9pbdQslSYR+D0qcOky0XJRHS/SeXJV1GMg243rygqofIKFrjUMfCDmja 44xe2RKMQrRZ3pIOZ0rQLFXkNR/afckRqPEdrVnnYPG3xe0V3Jho3OvNc/rxACvQuoXt VLdk1Ssn3KjcW+KtjRdi9eQ62a4iu1wbeW6ZQYMXUaZIsqWKFJ/m1vGdQP62c1gXssRK r0sQ== X-Gm-Message-State: AOAM530oakPMLmBTVG+TqWWsnUo3c9752LEzWKQnZAQ7TEKweH56DJE1 PUhdJQyEmJgrfHVkuCGAZ6w= X-Received: by 2002:a17:906:3496:: with SMTP id g22mr8373695ejb.143.1617268891231; Thu, 01 Apr 2021 02:21:31 -0700 (PDT) Received: from agape ([5.171.80.247]) by smtp.gmail.com with ESMTPSA id q10sm3144871eds.67.2021.04.01.02.21.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Apr 2021 02:21:30 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: joe@perches.com, dan.carpenter@oracle.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH 05/49] staging: rtl8723bs: remove all RT_TRACE logs in core/rtw_eeprom.c Date: Thu, 1 Apr 2021 11:20:35 +0200 Message-Id: <97eefac38353785e4db2090109966cd9bd7efbe6.1617268327.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 all RT_TRACE logs Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_eeprom.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_eeprom.c b/drivers/staging/rtl8723bs/core/rtw_eeprom.c index 3cbd65dee741..f2a2bdb47c7d 100644 --- a/drivers/staging/rtl8723bs/core/rtw_eeprom.c +++ b/drivers/staging/rtl8723bs/core/rtw_eeprom.c @@ -36,7 +36,6 @@ void shift_out_bits(_adapter *padapter, u16 data, u16 count) _func_enter_; if (padapter->bSurpriseRemoved == true) { - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); goto out; } mask = 0x01 << (count - 1); @@ -49,8 +48,7 @@ _func_enter_; if (data & mask) x |= _EEDI; if (padapter->bSurpriseRemoved == true) { - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); - goto out; + goto out; } rtw_write8(padapter, EE_9346CR, (u8)x); udelay(CLOCK_RATE); @@ -59,7 +57,6 @@ _func_enter_; mask = mask >> 1; } while (mask); if (padapter->bSurpriseRemoved == true) { - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); goto out; } x &= ~_EEDI; @@ -73,7 +70,6 @@ u16 shift_in_bits(_adapter *padapter) u16 x, d = 0, i; _func_enter_; if (padapter->bSurpriseRemoved == true) { - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); goto out; } x = rtw_read8(padapter, EE_9346CR); @@ -85,7 +81,6 @@ _func_enter_; d = d << 1; up_clk(padapter, &x); if (padapter->bSurpriseRemoved == true) { - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); goto out; } x = rtw_read8(padapter, EE_9346CR); @@ -123,23 +118,19 @@ void eeprom_clean(_adapter *padapter) u16 x; _func_enter_; if (padapter->bSurpriseRemoved == true) { - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); goto out; } x = rtw_read8(padapter, EE_9346CR); if (padapter->bSurpriseRemoved == true) { - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); goto out; } x &= ~(_EECS | _EEDI); rtw_write8(padapter, EE_9346CR, (u8)x); if (padapter->bSurpriseRemoved == true) { - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); goto out; } up_clk(padapter, &x); - if (padapter->bSurpriseRemoved == true) { - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); + if (padapter->bSurpriseRemoved == true) { goto out; } down_clk(padapter, &x); @@ -156,14 +147,12 @@ u16 eeprom_read16(_adapter *padapter, u16 reg) /*ReadEEprom*/ _func_enter_; if (padapter->bSurpriseRemoved == true) { - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); goto out; } /* select EEPROM, reset bits, set _EECS*/ x = rtw_read8(padapter, EE_9346CR); if (padapter->bSurpriseRemoved == true) { - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); goto out; } -- 2.20.1