Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp235740rwb; Sun, 6 Nov 2022 05:23:47 -0800 (PST) X-Google-Smtp-Source: AMsMyM7z9LopFTZF4uL0c25LTpsfpKoc6tfg0vO16299H0qL0WaprK8GnJmvCmA0kYGjBNgXpRAg X-Received: by 2002:a17:90b:2705:b0:20a:b25d:5d93 with SMTP id px5-20020a17090b270500b0020ab25d5d93mr63898269pjb.218.1667741027065; Sun, 06 Nov 2022 05:23:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667741027; cv=none; d=google.com; s=arc-20160816; b=FNwjMCWWQIRDNqsgkB/oCYDc0v7yk2qUFvqEDm9CoCuxZv+zrXNuSiaSIoj+81nrcH wJz8WCfMyRrQzGutAOqGnWRQpulN4xSY5pXYIdFESRaNaVV8WXBqZsxFvOJUaxOMB71C iUbNgXT3T3XHzSwnutyM9fPOufttcGh6a2HrEgeKcV8A6YZfB5KT56Hblr3DtIqfjXii P5GPvPRA+O7eN3TJ2MwHMj8QdsC3rR6n64rK/hNBwcvn28k7a5Fp2f/8CqUT3J1y6iFV qyIhguNfOPX3s6wuRBPVydI45rGhZbN94cFPYWFJK1+eRP6mIun5HA8TPYU8yFOJk5i1 0NJA== 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; bh=F1qygqGhD2zLgW/uuEeApHSTD7Ku7C61JEds3dlLSMk=; b=GQQKm7vai6ZedcKQAD7ISVHgSqp6HUE0iDKUDKdPJZWphk5Wj6ALrTOWHxUItylj2L tt3T1yXR57k3yAo1I6PfKj7QrXn93SjErAQ1fzKnJJ4vrYsmSuPNcbcE2kwFOzcFV0Q1 g3TbNpS9AG6/r5DpHGvzOcSrPIrC18NDb2YZtcdfeFGCx9f6ocelxXOnbAFibWV4+k9G hHsGb0Si/iZzdS1j0Suwhuw/wi797GbK39XPON8ikXYGcHgJxPaFJ78qY4QCZ6PYR55s 2gxyLGOS9EcA/l+zMuU09lm9nxsqAqYCdJ7W93Mi2tYbQF3PuTf7poFP8wpwwtHpxc/1 c5QA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kb7-20020a17090ae7c700b0020a66fc1398si13376917pjb.91.2022.11.06.05.23.32; Sun, 06 Nov 2022 05:23:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230019AbiKFMtj (ORCPT + 96 others); Sun, 6 Nov 2022 07:49:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229975AbiKFMtS (ORCPT ); Sun, 6 Nov 2022 07:49:18 -0500 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B2B36462 for ; Sun, 6 Nov 2022 04:49:17 -0800 (PST) Received: from ipservice-092-217-068-220.092.217.pools.vodafone-ip.de ([92.217.68.220] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1orf5P-0008Dj-5T; Sun, 06 Nov 2022 13:49:15 +0100 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , Pavel Skripkin , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 9/9] staging: r8188eu: remove checks in dump_mgntframe Date: Sun, 6 Nov 2022 13:49:01 +0100 Message-Id: <20221106124901.720785-10-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221106124901.720785-1-martin@kaiser.cx> References: <20221106124901.720785-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There's no need to check for bSurpriseRemoved and bDriverStopped in dump_mgmtframe. The sequence of function calls is dump_mgntframe rtl8188eu_mgnt_xmit rtw_dump_xframe loop over all fragments For each fragment, rtw_write_port is called. This function checks bSurpriseRemoved and bDriverStopped. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/core/rtw_mlme_ext.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/r8188eu/core/rtw_mlme_ext.c index 324757699716..17803aca83c8 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -3959,9 +3959,6 @@ void update_mgntframe_attrib(struct adapter *padapter, struct pkt_attrib *pattri void dump_mgntframe(struct adapter *padapter, struct xmit_frame *pmgntframe) { - if (padapter->bSurpriseRemoved || padapter->bDriverStopped) - return; - rtl8188eu_mgnt_xmit(padapter, pmgntframe); } -- 2.30.2