Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1454511rwb; Tue, 29 Nov 2022 13:56:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf5a8Vug8HGrbErH2FU0ff2d1a6SeTsjXWDFDTI6XZZ01rvqvujJdfnXnwEvsgcOmcAX3N2L X-Received: by 2002:a05:6402:5305:b0:467:69e3:c25b with SMTP id eo5-20020a056402530500b0046769e3c25bmr52967127edb.3.1669758973013; Tue, 29 Nov 2022 13:56:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669758973; cv=none; d=google.com; s=arc-20160816; b=mjCAgA2k1WFSwrvWRbEL+gB1hMWA99jeZvnxQO5HJg0HwTRy2VUWB4IW6qjA8iRuZS +M/LFmsv2guhfajRJW8ftIOloDlBF7LrcdEuno5PBM8XSqm+kv7b5qCgc2dDWu5Ho3Qt Z6VDFX4csXojihziH3Pt248+5rhXnd6QhJQMWELYSBopyh5FyEnxbOetiHUSaHTonfGU p4wOLNS+RfEZwMlOpO7y8nY/l8hq3swOuCB1iZWq+otfSnt9gBGKDUPppJnLJswl8AD/ FoEqhznx5TjbuiXUXLR2Y61J4bXiu3A5ef/w2D5LC662vRunaL18dycwOglpk6gZ7PS8 6Bwg== 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=nDqBmaYjepcaULXf01e5RBgZ7FUv3DjUHMptIxB4vsc=; b=C6gxghRcXDB6F3mlmA15Q18fry4JOKyDZKErNrewANgWWWDs2rwFmrhTsA7ymzgVml w0GcIhYqCXs0GgBKUkOLAsTwXMZUjQVxldEKkAapwfyDDjPWzVvtmMxzz9Bk00ckB6Lo rD7jK4xPVWzpy2lWXbRDKRQIXu15TAzywBvZ7+dmljBw5IhMYmQNt7a3C/CGKogFXIoZ heajUKWLdkNeFreFs8ZhERGsxdsPBSXhzi7k4NFs18+LwUgvYnxPT56gGVvESXfmGZA5 EGxumdIJV+W22ujo2WOxenmXp9o9jbDoP7IG/W6bkah77LKItRhDXUjS4UlvBdoMYMcC NsXw== 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 xf9-20020a17090731c900b0078d459a1ce9si14098238ejb.693.2022.11.29.13.55.50; Tue, 29 Nov 2022 13:56:13 -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 S236568AbiK2Uw3 (ORCPT + 84 others); Tue, 29 Nov 2022 15:52:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236627AbiK2UwV (ORCPT ); Tue, 29 Nov 2022 15:52:21 -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 86B0018E3A for ; Tue, 29 Nov 2022 12:52:20 -0800 (PST) Received: from dslb-188-104-061-001.188.104.pools.vodafone-ip.de ([188.104.61.1] 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 1p07aQ-0001pO-E5; Tue, 29 Nov 2022 21:52:14 +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 3/5] staging: r8188eu: move bBusyTraffic update Date: Tue, 29 Nov 2022 21:51:50 +0100 Message-Id: <20221129205152.128172-4-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221129205152.128172-1-martin@kaiser.cx> References: <20221129205152.128172-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 Move the update of bBusyTraffic into the else branch. The if branch ends with a return statement, so bBusyTraffic will not be updated in this case. With this change in place, we can reorder the code and save some levels of indentation. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/core/rtw_mlme_ext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/r8188eu/core/rtw_mlme_ext.c index fe58d4e3e260..dd1e0b4fc5a0 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -1466,8 +1466,8 @@ static void OnDisassoc(struct adapter *padapter, struct recv_frame *precv_frame) return; } else { receive_disconnect(padapter, mgmt->bssid, reason); + pmlmepriv->LinkDetectInfo.bBusyTraffic = false; } - pmlmepriv->LinkDetectInfo.bBusyTraffic = false; } static void OnAction_back(struct adapter *padapter, struct recv_frame *precv_frame) -- 2.30.2