Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp880788pxf; Wed, 7 Apr 2021 14:02:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEKH+vvXpqjf/nV79tL9VlcTMgS2OK62ddtEbdyyvaMnDW4aZkHcUlQNhY5wXsusYrH8yw X-Received: by 2002:a6b:fc17:: with SMTP id r23mr4113685ioh.173.1617829343375; Wed, 07 Apr 2021 14:02:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617829343; cv=none; d=google.com; s=arc-20160816; b=ujKIMpHmRq2mvzdAWBuwjIQK2CF498gY8/M8Q4fMhc0tVUnq6inAT2GPF5KTrHFKAg r+Zp3xESQYVbEn2R+R1j3p8Un0RoUCOLywSL+30Ig0wQrkCOeVpsXfJrAdnW/59+G/wQ sj/qdAPk06u3iu4cgq8/cOQDnGNF+9aLzArJp61z/TrNKibsqtwyNF+gmprYDmDjDr/2 5NNacf6n2pVss/UcvfEep61MRRqQaxTxwbrAbrDMXeTzlvl9g5VSTzdcBONdyyyEDfDa tU2aNQVBPlsaQAvOchLKextAX1UejcbRyjbbrOhmNM1TeHRU1oq7D5c8+R1bbbfPPdmv RFBw== 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=RqqLF1GJsQMO/eytwPHha/cMyoAyrXTCJ6Ep4n3zmME=; b=NxliWMtKHsVQeY+/04JM/1jKrPIT96U7Z6sQmBbceTyy/MnGLzOtRq0ApccbjL8Uiz xNhZEBJ6AduaJSxSKK4djV2ZnPrJYrujDzuLguPkgWdcHxlGqSAKptQg5upC0MAGj3Kd gNqIah3YZpWY91uMGCS3cjakz64O08EaR2rJf0GbnpkiY9mgAXnhdKF6Bce/JaJaWfj7 MFIAS94+uNwwyema+7356iG7wOjh9HEUp8JbACwOn9ldvjQBYeCr47mzjSr8Sn5V6ypZ HBHw+EfJc88OqwTBBCBvBzqMkQJfRUuXK/88AD7TaH0F5IIk50lpCSYDwBGLg4xEWb0X SnfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UyKdroCr; 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 h4si22152486jav.44.2021.04.07.14.02.10; Wed, 07 Apr 2021 14:02:23 -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=UyKdroCr; 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 S1347759AbhDGNu6 (ORCPT + 99 others); Wed, 7 Apr 2021 09:50:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347754AbhDGNuX (ORCPT ); Wed, 7 Apr 2021 09:50:23 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03EDCC061765 for ; Wed, 7 Apr 2021 06:50:13 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id 12so3574601wrz.7 for ; Wed, 07 Apr 2021 06:50:12 -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=RqqLF1GJsQMO/eytwPHha/cMyoAyrXTCJ6Ep4n3zmME=; b=UyKdroCrwU1Cr8JPmkmqbk04vYVz+bUEl9mU27Ht5TwwIKArioIGoslH1vvkAR91dr t8pvsecs2EMAWvRRd4zSiza5LkWUCTuEaPdtlpjUZnLqsj3Mq3UBG4Xwc8IY6Sf7PDTs YIGSOTduW04xt4xcp037IouTim9TuN/VWMXPOspb8WDn+gfmg0AThSXcAJWmaRyo/9os d+x6Y+C6MHUXBiHbGjDtHBJXWo3pP9I1iXazAFEbkUgB9tM4WaolgyCB1fVinwu0KsKM 6XtKeCOFQ93PGthl137i3DqUI4cGc34BA9ijlGR3Bp7EkbUvXV1AkJB0y84bCzRGd4w2 MAHA== 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=RqqLF1GJsQMO/eytwPHha/cMyoAyrXTCJ6Ep4n3zmME=; b=np5j2dPDLYsJLroA10M8VV79sas9z2mJcjhBK7Ta41uLHBxxJgehjn04iJjOhlmZep EKGWn6SoQzfgZZhZ4oiZi5Z9fy8Pf4clHDkhIhd7qdHEpvxAcRRPFFDoQsoTf9cTjkgE cWKnzHSOms2fazOnjElenpv59wjqCDdIvg7bCwePetKkimYtxRrYKXy/MOTsUGCdDsLO XG/82mnsx1ROrBnhjE7x3GJXewjAZMJ+1+NLkcMWIkM348d6jDNApU4ZOg0u/YWsRjKa FUkZIgUR3leugWfntlVEMVtGGCYeWPqchMmdH5+5YVaS0t6eHCAg8Hf5UaY8x3E+hKJm 79Lw== X-Gm-Message-State: AOAM530gYuNWv5IhAJVDp9xETjurecjBm5+XNzuh2t/YvkdZ6uZaUKS8 gPNWyuDdz6EV0sjeKN3RKsY= X-Received: by 2002:a5d:6b86:: with SMTP id n6mr4489592wrx.52.1617803411788; Wed, 07 Apr 2021 06:50:11 -0700 (PDT) Received: from agape ([5.171.81.68]) by smtp.gmail.com with ESMTPSA id w7sm15188540wrt.15.2021.04.07.06.50.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Apr 2021 06:50:11 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH 10/19] staging: rtl8723bs: remove empty tracing function dump_rx_packet Date: Wed, 7 Apr 2021 15:49:34 +0200 Message-Id: <281afbaecdb9614c91e648b3a6fc2738a176e57a.1617802415.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 tracing function dump_rx_packet after DBG_871X removal. Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_recv.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_recv.c b/drivers/staging/rtl8723bs/core/rtw_recv.c index 2d1201b70ab1..cd76fe2afcd0 100644 --- a/drivers/staging/rtl8723bs/core/rtw_recv.c +++ b/drivers/staging/rtl8723bs/core/rtw_recv.c @@ -1452,10 +1452,6 @@ static signed int validate_80211w_mgmt(struct adapter *adapter, union recv_frame } -static inline void dump_rx_packet(u8 *ptr) -{ -} - static signed int validate_recv_frame(struct adapter *adapter, union recv_frame *precv_frame) { /* shall check frame subtype, to / from ds, da, bssid */ @@ -1492,12 +1488,6 @@ static signed int validate_recv_frame(struct adapter *adapter, union recv_frame pattrib->privacy = GetPrivacy(ptr); pattrib->order = GetOrder(ptr); rtw_hal_get_def_var(adapter, HAL_DEF_DBG_DUMP_RXPKT, &(bDumpRxPkt)); - if (bDumpRxPkt == 1) /* dump all rx packets */ - dump_rx_packet(ptr); - else if ((bDumpRxPkt == 2) && (type == WIFI_MGT_TYPE)) - dump_rx_packet(ptr); - else if ((bDumpRxPkt == 3) && (type == WIFI_DATA_TYPE)) - dump_rx_packet(ptr); switch (type) { case WIFI_MGT_TYPE: /* mgnt */ @@ -1529,8 +1519,6 @@ static signed int validate_recv_frame(struct adapter *adapter, union recv_frame /* get ether_type */ memcpy(ð_type, ptr + pattrib->hdrlen + pattrib->iv_len + LLC_HEADER_SIZE, 2); eth_type = ntohs((unsigned short) eth_type); - if ((bDumpRxPkt == 4) && (eth_type == 0x888e)) - dump_rx_packet(ptr); #endif } break; -- 2.20.1