Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp583448rwb; Sun, 6 Nov 2022 10:16:35 -0800 (PST) X-Google-Smtp-Source: AMsMyM4870qL70gaI0GSTYxNvlrUHSvSuXLcFXe9jALgbXfsqGQoFtLxQ/nmqbfg2eXz/ijVLCN0 X-Received: by 2002:a05:6402:1e88:b0:461:a513:f543 with SMTP id f8-20020a0564021e8800b00461a513f543mr23430308edf.183.1667758595333; Sun, 06 Nov 2022 10:16:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667758595; cv=none; d=google.com; s=arc-20160816; b=zA4bxo0RdV8NnT1+d3J0e7hLZAmsn+s/NELdV2T797moF5bD3UpEEVMGroJqaB095k STszSYgb7/93bXA6QC12XMKUm3QcFq4qCWMyXb6E721t1KEz12W+0JgRAZ+aCDvwy2ML hbWrRE4oSJMGTZW4OEthJ8dh8X/DSWbAvKdHOP0PX5HRNYUo7KgHCCggEakJl1bTbflX AlJUhQcZJiq0IiHDg8VEuiRxpxGIRo+YvIERSSumb0l3WWhWHc7Zs4trERuvtLSadae3 41RuFbudvvO+h9ElKScMG5foKPs6tWvOzzc9b0zL1cvLyehKZ7NrWUVquqk7ZokebLay NBXQ== 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=uDyOvkm6/+OKBHgvu7fmcFq3OmFFRwHI49Wxj7re1+o=; b=VncYvBbRXmFp7M3mQaBxbdIDhAHDJy0IN5B01D+sYQFxPdr5zk3B9L2vxxwpmH7ANR bX9Hl3fqOE4PZtDwbFKSUsfJ50qo7w60s0AQyj3nnZkwJQaaG1bSvhGQ9RFLPMGtIucs J/4W4227wgZJtMXUDU/HRFJtbTmNQmvhAy9iLI4tVqs8BeoXo3A4FSUpRy44GzgqML5z Of+h+2bn0ajwCMFiPRJpkjgBCslgtmzph6b6hsiRW52qPfU8RLJ/bUKqOoyagSfB3218 8b/2uxugr/C9U80sJPW6iBKURTW1VDizB9+rbBbSXEO1uhbqCdTRzS9P4p/vZ3yZqHS8 QKRw== 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 hs7-20020a1709073e8700b0073d9ea386d4si5231650ejc.983.2022.11.06.10.16.11; Sun, 06 Nov 2022 10:16:35 -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 S230442AbiKFRGX (ORCPT + 96 others); Sun, 6 Nov 2022 12:06:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230366AbiKFRFx (ORCPT ); Sun, 6 Nov 2022 12:05:53 -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 6C193FCE5 for ; Sun, 6 Nov 2022 09:05:06 -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 1orj4u-0001KU-Vi; Sun, 06 Nov 2022 18:05:01 +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 2/3] staging: r8188eu: drop another removal/stop check Date: Sun, 6 Nov 2022 18:04:54 +0100 Message-Id: <20221106170455.743058-3-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221106170455.743058-1-martin@kaiser.cx> References: <20221106170455.743058-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 bDriverStopped and bSurpriseRemoved in issue_probereq_ex. The code path looks like issue_probereq_ex _issue_probereq dump_mgntframe or dump_mgntframe_and_wait_ack All paths from dump_mgntframe check the two variables. dump_mgntframe_and_wait_ack contains a check as well. 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 17803aca83c8..bfd6afd7266e 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -4496,9 +4496,6 @@ int issue_probereq_ex(struct adapter *padapter, struct ndis_802_11_ssid *pssid, i++; - if (padapter->bDriverStopped || padapter->bSurpriseRemoved) - break; - if (i < try_cnt && wait_ms > 0 && ret == _FAIL) msleep(wait_ms); -- 2.30.2