Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2595066pxf; Sun, 4 Apr 2021 07:12:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxh20s4OZ/dAhgu/eZ0pH1a4wuQEpIBza8Wixvkhc4na4HIGWVB1dwEZ0Z7Xzu/nvcXyorT X-Received: by 2002:a05:6402:9:: with SMTP id d9mr26065751edu.67.1617545546847; Sun, 04 Apr 2021 07:12:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617545546; cv=none; d=google.com; s=arc-20160816; b=rVDlY9qplJ6fgMBenpYOohS+ejaMVh/X+rzWQS+BRQMy/dneoA2O5pOvtvH7P99/9d KWxQ6UMCp3kVNBeboqqNWz3434YdbsiG6cvP1FSRm6MLapXtsizY41k6Ifq0SWCQbnPh Fg9nVeY29aGMQCWAHDGHJ6FC071CMAzHZ96IRJssLmiGAXzAlvhh4arty18obcoUTOUp qgqxuPdNecIZNFvvqeVo2AmYb2DiViHFfXAKCBDwT/tuJL0AfnEHeEMFGw3U/+Lau+Wl 2LYE8E/EjS+zl4rVPbSRtzRsvqe1gNIiHBbOwRJwWwn11kp53LyCKpUwHB3bhtggunes jtUg== 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=aKJMQyibGkbhT7wVDkcAwfnXuo5IWQYiwpzUD+I1No0=; b=VgM0k2HM2+T3+r10ZRUuZ6KNZJ33udBY+mdvQAhC8DmCEbjDfb331xXsPG10t23jn0 3t6vOiszn6lhhJNXbwU9Mmu+hAEMdeGn1HvbQlP/IhAwDgXuFnxHveK9FHYQvgkhiI0j 34KKYd/X8inwmWHWgfaqBrp9WhBlYVy7uPJOhp7cEaXdkunDvV8YF/RMVI5xj6VMgByS XBYaX9350jxunselccU2V3NTd3E8LME1XmF0YnQKekxjS7fBs5F7r/DHghefVnEhjRi+ sDDBDXLRKZmSkTY+EHi+nuzBTkI0b7FcC0yt0xeId8VY9i1y5d1MJencjNNpA5JEEirq kyeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YIICI1En; 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 m8si33750ejc.696.2021.04.04.07.12.04; Sun, 04 Apr 2021 07:12:26 -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=YIICI1En; 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 S231389AbhDDOKq (ORCPT + 99 others); Sun, 4 Apr 2021 10:10:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231249AbhDDOKT (ORCPT ); Sun, 4 Apr 2021 10:10:19 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E6B4C061788 for ; Sun, 4 Apr 2021 07:10:14 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id w203-20020a1c49d40000b029010c706d0642so6523130wma.0 for ; Sun, 04 Apr 2021 07:10:14 -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=aKJMQyibGkbhT7wVDkcAwfnXuo5IWQYiwpzUD+I1No0=; b=YIICI1EnDAQIG+agmEPc7Vd6BcInQyeh8NdLLT6IK3ebjBBOe0wbRmrO7hdAibVo1o 9xs13W91sV5RNdYzRD+KO4ADal9ieTMjWqo+wwRyUo3Y0huiYPugWBKcgWy8wFVego3g 6a6RWR31YefMweeUV9O2iTEvZL9djiA40qUIipPJEwbFVhCpYziOZ6hdNZpMytpMGOn8 27BMcIDTXWC2EbR1KOEo1lqDy+5spNX46iDZtZJKBlDsh87sccE28bCRUjoRcTnt7fv4 ZLVA5LQtZPhbvnmAoAKd7+1TSKdx59nAygH00KOXPLT6ru8RtdLsZT4nUPBhF/9Jyb5N TVjA== 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=aKJMQyibGkbhT7wVDkcAwfnXuo5IWQYiwpzUD+I1No0=; b=TmUomjTtW/9ager4tokgW8bKe4lGpPujOuSNXFMeyVqgPmre/QcsL+5t4FSqTcwkcP S9OcrJi40eHHPcflEp8QnNL/UBoQv4fkDDzYXXo/UjbSQQQL5xHjJTfg5nXZasK8CgXI NQHugtuTAscx6RppxTqzMhKDnPTkn0PiCG/nWxKs/v8NkAe8DZT8BQnBSB5VjYEO850B WmTJfNDmy7dW5bFtUiH32aaCylZw+qTmiaW2fWG/Bw5f74AtHDAENVkltLcUmaXMumfI myhy9BlvDwykQfGBeWKhpQ1icrkdeJgOxcjBpVbhnAiujG9AXldV47buVp853BKatFEO op4Q== X-Gm-Message-State: AOAM531jMGJfXMPzVIIzhU+jVAunieafU0N/yNPeHEKIE892A8+hxoxg p/gkxBJtIz2MA6uz+yZTLdk= X-Received: by 2002:a7b:cbc4:: with SMTP id n4mr21931659wmi.153.1617545413455; Sun, 04 Apr 2021 07:10:13 -0700 (PDT) Received: from agape ([5.171.81.112]) by smtp.gmail.com with ESMTPSA id h10sm23472217wrp.22.2021.04.04.07.10.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Apr 2021 07:10:13 -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 v4 14/30] staging: rtl8723bs: remove commented RT_TRACE calls in core/rtw_mlme.c Date: Sun, 4 Apr 2021 16:09:30 +0200 Message-Id: <09862e8783366045a08fd97523595710a08df918.1617545239.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 commented RT_TRACE calls in core/rtw_mlme.c Remove all of the RT_TRACE logs in the core/rtw_mlme.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_mlme.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c index 29d4b7493784..4289bf40aa73 100644 --- a/drivers/staging/rtl8723bs/core/rtw_mlme.c +++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c @@ -356,7 +356,6 @@ static struct wlan_network *rtw_dequeue_network(struct __queue *queue) void rtw_free_network_nolock(struct adapter *padapter, struct wlan_network *pnetwork); void rtw_free_network_nolock(struct adapter *padapter, struct wlan_network *pnetwork) { - /* RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("rtw_free_network ==> ssid = %s\n\n" , pnetwork->network.Ssid.Ssid)); */ _rtw_free_network_nolock(&(padapter->mlmepriv), pnetwork); rtw_cfg80211_unlink_bss(padapter, pnetwork); } @@ -393,8 +392,6 @@ int rtw_is_same_ibss(struct adapter *adapter, struct wlan_network *pnetwork) inline int is_same_ess(struct wlan_bssid_ex *a, struct wlan_bssid_ex *b) { - /* RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("(%s,%d)(%s,%d)\n", */ - /* a->Ssid.Ssid, a->Ssid.SsidLength, b->Ssid.Ssid, b->Ssid.SsidLength)); */ return (a->Ssid.SsidLength == b->Ssid.SsidLength) && !memcmp(a->Ssid.Ssid, b->Ssid.Ssid, a->Ssid.SsidLength); } @@ -551,8 +548,6 @@ static void update_current_network(struct adapter *adapter, struct wlan_bssid_ex &(pmlmepriv->cur_network.network)); if ((check_fwstate(pmlmepriv, _FW_LINKED) == true) && (is_same_network(&(pmlmepriv->cur_network.network), pnetwork, 0))) { - /* RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_,"Same Network\n"); */ - /* if (pmlmepriv->cur_network.network.IELength<= pnetwork->IELength) */ { update_network(&(pmlmepriv->cur_network.network), pnetwork, adapter, true); @@ -778,7 +773,6 @@ void rtw_survey_event_callback(struct adapter *adapter, u8 *pbuf) /* update IBSS_network 's timestamp */ if ((check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE)) == true) { - /* RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_,"rtw_survey_event_callback : WIFI_ADHOC_MASTER_STATE\n\n"); */ if (!memcmp(&(pmlmepriv->cur_network.network.MacAddress), pnetwork->MacAddress, ETH_ALEN)) { struct wlan_network *ibss_wlan = NULL; -- 2.20.1