From patchwork Sat Oct 15 15:24:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 2959 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp684316wrs; Sat, 15 Oct 2022 08:27:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4rSvQeIO0Q3a/8nz/e03ZGTM2OBBseUtEiBDm/8yCIeF1ty9Z4dLaDm9dZoKqvn/GRiYYm X-Received: by 2002:a05:6a00:4192:b0:563:5e95:1db3 with SMTP id ca18-20020a056a00419200b005635e951db3mr3563915pfb.14.1665847651359; Sat, 15 Oct 2022 08:27:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665847651; cv=none; d=google.com; s=arc-20160816; b=u0VXjF1MECGz99oudT3Ad/M8r0GHUAoFzdjdB6yps5yXWW5yIBbP9jXStn29qlcN4T LRVy8bCeq/EXn7JfUx72SQlUA+SGu09QdTqZvrHZJ2CqTG4r+P+x8oldw1qt7oN/AwqY tEdvGmHvxYLmjiFUaw50nswtod+vDVOYDgWJjgNRfq0vzCZWLvKjvA87xP9lOM2BsDAC bOP2CmC4DYqgyNQuD98SYdC8UjFZXgnDbYLpZGlyZhyYyewTYEMzUCOupDNhjIxb1/LM qR0yIMpjSn3yacpiNjYykZ1OIDOBOGOz+98dbz5tAsljJbuevWxLwXAmSQy0Nf0Ocn7M /2dw== 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=+kOxqTPzChPpYIlMVHXi5trr5sjn9Cw+WSB8uFKN0C8=; b=a1TE2F0x8ctPbDa84R/USOrL4glIWsxGtN7xXCXMunFqvH6DOkSdtiX1YNV6O96fXA DLh05lDxpPnHuwTixL2Us+hITUvHsxQv1IT2ck1vY7yC2CchC/YMOsZeQwm9S/JR3mgQ 38B8ifCx5roMuwZfcbomPUkS3ggePlE/hKNN3avzgBpm7fwZDU23o3aPtyHcItqtXhpf fHMhIp18qssiEPMgbe1RDBwV66iLg7iRHzqztEQkXVi95OV4zTienwL35VsWgeo69zGq 8x0+syxHQSYc25ysFPCUGFWKtrN3GMmDwuuv9dqoRVGOHAKfoIOLYQWeWXsrz+CzWWM6 8Zlg== 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 b5-20020a170902e94500b00174ab1a7deasi6085121pll.316.2022.10.15.08.27.19; Sat, 15 Oct 2022 08:27:31 -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 S229884AbiJOPZS (ORCPT + 99 others); Sat, 15 Oct 2022 11:25:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229800AbiJOPZI (ORCPT ); Sat, 15 Oct 2022 11:25:08 -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 56A961AF02 for ; Sat, 15 Oct 2022 08:24:57 -0700 (PDT) Received: from ipservice-092-217-066-135.092.217.pools.vodafone-ip.de ([92.217.66.135] 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 1ojj1y-000722-Im; Sat, 15 Oct 2022 17:24:54 +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 7/9] staging: r8188eu: remove unnecessary return Date: Sat, 15 Oct 2022 17:24:38 +0200 Message-Id: <20221015152440.232281-8-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221015152440.232281-1-martin@kaiser.cx> References: <20221015152440.232281-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?1746767866963501113?= X-GMAIL-MSGID: =?utf-8?q?1746767866963501113?= Remove the return statement at the end of the if branch. We can continue to the final return after the if-else. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/core/rtw_mlme_ext.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/r8188eu/core/rtw_mlme_ext.c index 40df0f9982f4..465f51bce0e3 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -1492,8 +1492,6 @@ unsigned int OnDeAuth(struct adapter *padapter, struct recv_frame *precv_frame) spin_unlock_bh(&pstapriv->asoc_list_lock); associated_clients_update(padapter, updated); - - return _SUCCESS; } else { int ignore_received_deauth = 0;