From patchwork Mon Oct 24 08:14:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 8218 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp317732wru; Mon, 24 Oct 2022 01:19:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5St+jY/1w8i8BdEGB42mMpeEFn/hTgo1iSVZG68FhY7L6g3MjdbpS7QzKPtNDhNhuo0zgo X-Received: by 2002:a05:6402:27cd:b0:45c:db6f:7e77 with SMTP id c13-20020a05640227cd00b0045cdb6f7e77mr30290781ede.149.1666599599100; Mon, 24 Oct 2022 01:19:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666599599; cv=none; d=google.com; s=arc-20160816; b=CL+tv7/uGJi0gD3WwVnBXmX+/rJ3W8/LLJWDEhP4wyD0dnPfrb3A0Gh05CKqhon3Q4 n7kOBESu7fjHU3C85B1co/vUdRptPP92dWdrFhlprZSb1M1ShiR3iZ0FZ+1vu/TX6JRr oVi5LLJk/EwCROKnEZZlqkrHjgTEYuDoQFFrDdVaTfWL7QrjeC5czLlJgaWYyTS77178 V/hfDveK5fDneL0+dABBUdXRuT/9QI7fHzM5xL+T0m/9UnTEly0pkw7F5KjJW/yA0/AW AP+qyxPam2/aTnUrjwKKoCRNOeWCncoQ9zjyIGj9DdecbszuIlgsfl5vupBAHtKs5Bt3 2tZg== 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=0jeHLya9i1OKGbraGLx3APqV8wwSbJpFywce7jcr7YU=; b=DPTmocDniacZwbT+YbHgQLBHWPJgZnbK+9UZLiFt8yxTwAxtVS5fl48FPcnauB0osV oFE0z/MxoRFIeLFsxU+mMYYjCMebF5aYLCqqooj9DKB9HrbdAbfM7DRRbz1gU83QnXBf ZWQZPQ2ZiWazbtFsL9/8rkEs7kKP6ld7wxWB4sDLiazVfGL3mjKNy0KtsrKuiLeA5qvs RTxIGjgoDIQxUXwXL56BMemN4wZBW7Wmg2PjI6F2D76ZNLCFNcQWRcXRWhoXatyeTfG9 aQytrMfV2q8roIlPhJ+Qw9OyJ8lKcs3EZBZS8ROW+l/ujr20DpJ2LNbz+o7GARr7EQLb /b4A== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mf4-20020a170906cb8400b0078e1cd71067si24037999ejb.205.2022.10.24.01.19.35; Mon, 24 Oct 2022 01:19:59 -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 S229718AbiJXIQO (ORCPT + 99 others); Mon, 24 Oct 2022 04:16:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230226AbiJXIPs (ORCPT ); Mon, 24 Oct 2022 04:15:48 -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 083C82EF16 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 1omsba-0000nk-QG; Mon, 24 Oct 2022 10:14:42 +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 15/17] staging: r8188eu: remove unnecessary return Date: Mon, 24 Oct 2022 10:14:15 +0200 Message-Id: <20221024081417.66441-16-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747556341221443530?= X-GMAIL-MSGID: =?utf-8?q?1747556341221443530?= Remove a return statement at the end of a function. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/core/rtw_mlme_ext.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/r8188eu/core/rtw_mlme_ext.c index 3c6ea9912d7f..7120e015d1bd 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -852,10 +852,8 @@ static void OnAuthClient(struct adapter *padapter, struct recv_frame *precv_fram return; } - if (go2asoc) { + if (go2asoc) start_clnt_assoc(padapter); - return; - } } static void UpdateBrateTbl(u8 *mbrate)