Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1847233pxf; Sat, 3 Apr 2021 02:19:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6XLHlgVrvX55uitxDRyN8hbK+FUIUm99Ii9rGyaEQH/nW1qeWoBwMJ2kf5bvW2LmGfH2h X-Received: by 2002:a17:906:85b:: with SMTP id f27mr18559393ejd.414.1617441572704; Sat, 03 Apr 2021 02:19:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617441572; cv=none; d=google.com; s=arc-20160816; b=HwQaKv9Pkq77BT7aXoRFvz+ccAKDE0uS3rI9vu9huVMuvXg2aMJ36LVvf9MWgb4fHE NipxgdQbLoERVDxZ97bFtLJ5FoMjVHl92W349Szdi5hSE8KrnwuOwIb4ihIHpa+vzPnv U9OtZKLkYKmI7BUqXRpHPOi0U1CNqEqfRNvkvwdOGHif4SFI6d+UFhh5Ez6t9HhEaFGd RP6q105A6Ckk7EuAKxx1w7mqeBy07jNaO7GDrGqgKztgj8GS53kSIstDsSfvMMpho/49 VY8Hq5WGOHx4inURdxDHXGfPd2/tloqQ6qEavDOgl2RzY5IPkUGjSWJZU8ZcL6ZCBVjU PNow== 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=kIfS7OWNyn+ExLRfzsdJaFoZLyhYN11InQC07hnzCO8=; b=LEhOXiCLW5tQZG+mG8EV69hsHzMqv3prj72qT/zxXuv0O8342+Hzjuj2EMlD7mlsxo PLG+Akq+H6QG/L/6rMYOHLpgK1yU9Rt0HBG3Gj/BZEIkPVEHfjYJQOS4Z3jIoJhnLdw7 mtUBlAuqrYPX0NpMh4baUier5xQUwV8qFvdwBmh84tC3Ss/hnpP0cedgpQR+TOryTeqm 6dVmpJ1s9dbtAowmXEGn4NxxE5NG/6zpc8J/BafYZe6LGmi1GiHDfotQ/HPdTc4p3kbh 6uxJeyzmt508AxwFTUxtOQrXhu4zVb1Jj2a/J7I+ftE6I/f4I+PIjCRL0n/CfLRBwtF/ kehQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Q/dHkeQT"; 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 l26si7959050ejc.536.2021.04.03.02.19.10; Sat, 03 Apr 2021 02:19: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Q/dHkeQT"; 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 S236831AbhDCJP5 (ORCPT + 99 others); Sat, 3 Apr 2021 05:15:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236728AbhDCJPC (ORCPT ); Sat, 3 Apr 2021 05:15:02 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56E6CC0613AD for ; Sat, 3 Apr 2021 02:14:59 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id q26so847566wrz.9 for ; Sat, 03 Apr 2021 02:14:59 -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=kIfS7OWNyn+ExLRfzsdJaFoZLyhYN11InQC07hnzCO8=; b=Q/dHkeQTkcVv+uIV+IFICfDM5WLJn1BqucLkdzSxqtjueu8CeWLK8MND8vI8ayen5g 6wtcRNZanK1CCy5pfi7Cd+UIxCPodVdTHa8NMKa0MGGvWJvx+8X0Vz5hQKcTE+v4VGWg hL9EghrpycPgJUpB3Vq2Q3O9C8MmwUvlVGHTAbI5wx3KlvyKiDJotKZHkdag5JYMmhIU 4JtBdUwVXdNj93nxqyGm3MlURRIVudTo8IYqGGImQQibbx9muKhaEL2ucgYRxu4JLn7U ijqqexp9z1eR8Qj5HAdsL4zBI18nPrjGiiJzxcqBAJKqAxI7CLzzV4Mq0PY14rMUZYfR WLDg== 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=kIfS7OWNyn+ExLRfzsdJaFoZLyhYN11InQC07hnzCO8=; b=WVY090aOlD7Kh2iqBWO9DmsPOFZ5cOFgqvzsrTZTUcxzCo8bHXDJncsBwJD9fs6VNi zEHtg7iqHNWbi8KL8BUwYZKIhuZD/F9lyLeyonF9xOdgSMqj9tOhLGXMBWI6pXblXoN9 GEXm9X3/5CrKVlcmceMXKLm64imNwPsoMGzQLhOLezw9ZkdKOhTGYwa9Z9mLb+/T9XI7 UXa3sdbHNzyOJpP4wjje2zotfRYYF1xiP8Bo6sgnZ8zKv9AQyWe8/Trp/HrfnPab1a4L 51ZIRCOS12wV6zqqqn41tx6NVvYT5SNUzdGv7CG+vo0SOxmgPgC0o9u9XK0kFuZ+mUtI 2vDQ== X-Gm-Message-State: AOAM531x2hJ6h3PoiwOT6ItQozREsmANfpoEq1TWSQhPmPGN0yrE2mhw JrE3Zd0xWRHRGW7uZGVZ+m4= X-Received: by 2002:adf:a703:: with SMTP id c3mr19537409wrd.72.1617441298125; Sat, 03 Apr 2021 02:14:58 -0700 (PDT) Received: from agape ([5.171.72.64]) by smtp.gmail.com with ESMTPSA id i7sm1469381wru.41.2021.04.03.02.14.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Apr 2021 02:14:57 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: dan.carpenter@oracle.com, joe@perches.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH v3 28/30] staging: rtl8723bs: remove RT_TRACE logs in core/rtw_sta_mgt.c Date: Sat, 3 Apr 2021 11:13:50 +0200 Message-Id: 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 of the RT_TRACE logs in the core/rtw_sta_mgt.c file as they currently do nothing as they require the code to be modified by hand in order to be turned on. This obviously has not happened since the code was merged. Moreover it relies on an unneeded private log level tracing which overrides the in-kernel public one, so just remove them as they are unused. Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_sta_mgt.c | 25 -------------------- 1 file changed, 25 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c b/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c index f96dd0b40e04..7dcac4dd9de2 100644 --- a/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c +++ b/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c @@ -216,10 +216,7 @@ struct sta_info *rtw_alloc_stainfo(struct sta_priv *pstapriv, u8 *hwaddr) index = wifi_mac_hash(hwaddr); - RT_TRACE(_module_rtl871x_sta_mgt_c_, _drv_info_, ("rtw_alloc_stainfo: index = %x", index)); - if (index >= NUM_STA) { - RT_TRACE(_module_rtl871x_sta_mgt_c_, _drv_err_, ("ERROR => rtw_alloc_stainfo: index >= NUM_STA")); spin_unlock_bh(&(pstapriv->sta_hash_lock)); psta = NULL; goto exit; @@ -242,17 +239,6 @@ struct sta_info *rtw_alloc_stainfo(struct sta_priv *pstapriv, u8 *hwaddr) for (i = 0; i < 16; i++) memcpy(&psta->sta_recvpriv.rxcache.tid_rxseq[i], &wRxSeqInitialValue, 2); - RT_TRACE(_module_rtl871x_sta_mgt_c_, _drv_info_, - ("alloc number_%d stainfo with hwaddr = %x %x %x %x %x %x \n", - pstapriv->asoc_sta_count, - hwaddr[0], - hwaddr[1], - hwaddr[2], - hwaddr[3], - hwaddr[4], - hwaddr[5]) - ); - init_addba_retry_timer(pstapriv->padapter, psta); /* for A-MPDU Rx reordering buffer control */ @@ -363,16 +349,6 @@ u32 rtw_free_stainfo(struct adapter *padapter, struct sta_info *psta) spin_unlock_bh(&pxmitpriv->lock); list_del_init(&psta->hash_list); - RT_TRACE(_module_rtl871x_sta_mgt_c_, _drv_err_, - ("\n free number_%d stainfo with hwaddr = 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x \n", - pstapriv->asoc_sta_count, - psta->hwaddr[0], - psta->hwaddr[1], - psta->hwaddr[2], - psta->hwaddr[3], - psta->hwaddr[4], - psta->hwaddr[5]) - ); pstapriv->asoc_sta_count--; /* re-init sta_info; 20061114 will be init in alloc_stainfo */ @@ -543,7 +519,6 @@ u32 rtw_init_bcmc_stainfo(struct adapter *padapter) if (!psta) { res = _FAIL; - RT_TRACE(_module_rtl871x_sta_mgt_c_, _drv_err_, ("rtw_alloc_stainfo fail")); goto exit; } -- 2.20.1