Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6501982rwi; Mon, 24 Oct 2022 02:13:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Y35K5pTVxGL91Sj5fpazEjg53L+z/JQMtVCYQ6QXwq1qi/2bT36NZBhehwWRgW33jzDiZ X-Received: by 2002:a17:90b:70a:b0:211:f163:ddff with SMTP id s10-20020a17090b070a00b00211f163ddffmr24876434pjz.202.1666602807881; Mon, 24 Oct 2022 02:13:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666602807; cv=none; d=google.com; s=arc-20160816; b=DefDTtRNg+SVsrYCsnrdALa6Ky/OTooyubTFPwRlI9bb+6qMuv1yRDq7gj430j5Z/0 8oTFJgmVLwykCzyirzzJhL8FSyu3bwR90nXkvC96WzX+C+WjgHME/YN221hi7GZKzuH9 wr8sJ3NR/M4i8hjPHMmUZLJnXJHyrB4DTaL1pvQiIsKjWw9siCUkUUDS+GG9oqunXzJt Nk/VrHkkolNN2XgKFZcNs8sl/n9vV9VhpuGirUnlPvihJXJ/GvIYD2Qo6MzlB/yx0+Qt KKCzUVHXS0yuCOW4EAYTKUqn4thwU8hkHJsJnO7gFELi2F0oeH9FBnmckqao2ABYpKHq U8Vw== 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=utt2NrFZ1LZxcmesTnZABMZ0JXtpIpLRlvGxTMurJXI=; b=BKffyiZW1/E3jlI2PgWYaD1aqBeGMLsWh7aLNX8N8a+sHLGLgKJuYt94+ysOGToKmZ XjUD3IKTixoQPdAOeVTHj1UAUmuMXjOLVfVtgurIug5NCD+ycFUf/FTVLF0CIp3WdacC lrMs5DCpKlKkblr1fD58Vk5K+M2fHVrpElMYHeVFbLe78F6MLWHmuVRHw3LgCY/Ghsh9 8GAtN+bLoxUvB+BRNWOQxuiv6uKI2ArkVRPiYJ3y7HdHrA9qEkJLoZZGT4bbUsNpAlR1 XcNa7W52n5nqmXxGMK5BQS6BSLMWKCutrUPlfGYkPoXSEFY65iE7kdH5SlcjxUVv0clE 1HuQ== 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 h12-20020a056a00170c00b00563960fdb21si35818404pfc.260.2022.10.24.02.13.15; Mon, 24 Oct 2022 02:13:27 -0700 (PDT) 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 S230285AbiJXIPm (ORCPT + 99 others); Mon, 24 Oct 2022 04:15:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230225AbiJXIPA (ORCPT ); Mon, 24 Oct 2022 04:15:00 -0400 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 72585D13E for ; Mon, 24 Oct 2022 01:14:48 -0700 (PDT) Received: from ipservice-092-217-079-032.092.217.pools.vodafone-ip.de ([92.217.79.32] 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 1omsbZ-0000nk-UH; Mon, 24 Oct 2022 10:14:41 +0200 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 14/17] staging: r8188eu: remove unnecessary else branch Date: Mon, 24 Oct 2022 10:14:14 +0200 Message-Id: <20221024081417.66441-15-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221024081417.66441-1-martin@kaiser.cx> References: <20221024081417.66441-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 Remove an else branch in OnAuthClient that is not needed. If we go into the else branch, go2asoc is 0. We can simply continue and the last if condition will be false. 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 01fe5019b333..3c6ea9912d7f 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -850,9 +850,6 @@ static void OnAuthClient(struct adapter *padapter, struct recv_frame *precv_fram go2asoc = 1; else return; - } else { - /* this is also illegal */ - return; } if (go2asoc) { -- 2.30.2