Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6502398rwi; Mon, 24 Oct 2022 02:13:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4wmD3oqqAXwLv9M1u3DLf9QssI3q2YQmMJ+SevSDVfnc0WywZLeLRCG0QpXHa/T941aXbw X-Received: by 2002:a17:90b:224c:b0:20d:8828:3056 with SMTP id hk12-20020a17090b224c00b0020d88283056mr74234043pjb.136.1666602828754; Mon, 24 Oct 2022 02:13:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666602828; cv=none; d=google.com; s=arc-20160816; b=bIaYTwR7MPpVv/63gwCXARZowJ5xWvDZ5ukublfgQuJ7yK/3x36zvHY/Dp6Gf8z2Oi uPKdUc+XzPOUwPMl8cBzW/2h91p6cpMTHARx+Jdn3DCZjThGz2d31/X1nXFPEYbfDENe W0uBe0ZVbEehzTocqtpB3JBaNjqqzVST2LtNsPYNclZfRp2MKyMwkR4sCal8L9G19d28 QJl2eg7yEStpKdraBeUwTPY9c3bC1T5eIDRfifFEwYK8WlAcLyk0bMqOGr3gzZp4wgbM CReGpRMpUG0xxk+bn6ZcCGf7kkzEB+8s2HTfmeKU0/Gfs3/VUxoH6wPy/xmdXo7G0iYL nWzg== 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=uCQHSYNh6hjZ0Z6a+rCPVOzyXZS0ejUWFFIYjJMzpSM=; b=PeKCWTiDOif0nZ6x0HlRiM7EQgatNqVF3utKOM8IdA0CbQ9Q/JYltJmu3myX9WrYRN zgCWUzoB8AJ0ua/UB6r+sJ0AveYUsEEIEP4Ugit2c6287bKHmMJKV5QVIZlQZfsgdV7b N64BxTm7ULJJvQoeIqfcVuleo/KxSOS5XjaDZPSjDQhsxYr6vGfgMqwhijfa03pUShUZ rM8Z28SjfF/d2Q/7uXrCVJwqybmPMaWTQSs47mRmjLWq8dRDzTCWOkuqtccNgIJ2IcTr ZkLhG1aP96yej0701lzZ8JWNuvYLUsO25u8tbioqf8Tu0XeIkxikTrdFEHo5VoDUG22i n7HA== 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 v24-20020a631518000000b0046aeec7fe3dsi35333703pgl.703.2022.10.24.02.13.37; Mon, 24 Oct 2022 02:13:48 -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 S230255AbiJXIPU (ORCPT + 99 others); Mon, 24 Oct 2022 04:15:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229937AbiJXIOu (ORCPT ); Mon, 24 Oct 2022 04:14:50 -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 EE25517A9E for ; Mon, 24 Oct 2022 01:14:46 -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-1l; 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 13/17] staging: r8188eu: remove unnecessary label Date: Mon, 24 Oct 2022 10:14:13 +0200 Message-Id: <20221024081417.66441-14-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 a label on OnAuthClient that just calls return. We can return directly instead of jumping to this label. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/core/rtw_mlme_ext.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/r8188eu/core/rtw_mlme_ext.c index 074c95f76e27..01fe5019b333 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -823,7 +823,7 @@ static void OnAuthClient(struct adapter *padapter, struct recv_frame *precv_fram } set_link_timer(pmlmeext, 1); - goto authclnt_fail; + return; } if (seq == 2) { @@ -833,7 +833,7 @@ static void OnAuthClient(struct adapter *padapter, struct recv_frame *precv_fram pkt_len - WLAN_HDR_A3_LEN - _AUTH_IE_OFFSET_); if (!p) - goto authclnt_fail; + return; memcpy((void *)(pmlmeinfo->chg_txt), (void *)(p + 2), len); pmlmeinfo->auth_seq = 3; @@ -849,18 +849,16 @@ static void OnAuthClient(struct adapter *padapter, struct recv_frame *precv_fram if (pmlmeinfo->auth_algo == dot11AuthAlgrthm_Shared) go2asoc = 1; else - goto authclnt_fail; + return; } else { /* this is also illegal */ - goto authclnt_fail; + return; } if (go2asoc) { start_clnt_assoc(padapter); return; } -authclnt_fail: - return; } static void UpdateBrateTbl(u8 *mbrate) -- 2.30.2