Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp947757pxb; Fri, 22 Apr 2022 15:05:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwR5ek37gmPdtWR49X0hodQv3EEY3RvwpREknSTwUYpb3cRZcbCQKjeJuf3407LAh/Ly4Cj X-Received: by 2002:a63:6fc4:0:b0:393:9567:16dc with SMTP id k187-20020a636fc4000000b00393956716dcmr5476619pgc.593.1650665121349; Fri, 22 Apr 2022 15:05:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650665121; cv=none; d=google.com; s=arc-20160816; b=DTfk3kjyrooaGakH9olGXjGdyks7J/iTKlQVHRpYFpzWzLo8oiGgXCpA0RMZrCb4Ar OjxrdSXtCn6HuKRI6NubTYcPzeWe7n+X5zsx0oKHJk6FvhjQ5/8109PPL6ysGG+O2Z1s M45OtuyvMy0SQuEK9lPGTjk+FQNbwAEGLZW+Scpgu2F5lwX2jxHb4ljuTlYMmhU+KSpJ kT/3aKv4PAgdcllLZCaoja5hobnOGMv2ldsGgn3mtWqFxJTytCLsEoOHS/kk7fQH8LfN SdNbbluAjPmvkk6OlE4N1QzZKYwYa5JKFdvFGOkE3DzjKR8F2Adm8H4HE5QY7v/JgJ4s eBvg== 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 :dkim-signature; bh=waPvZGOg2+RC3HM/74+dHiUU2qD9NP4c44RrV5MzX3U=; b=Eksr2RGNi8k0U5vNUrWUFBjPKeiUuRMk4bsazyZ9R2nbQbM6efyDO+e9IJY7LFO5Rn j/RcF2b+5GXOZkGrxmPLM+VHO1BCcQOUc1tRgipEaKtZKkT1+N2H6RncIop8BzQFhZ7O kzkQUJbZrPeg7OkJq9T25ur9NArhyOWa+SGBYPHV6AGKCpfstVDe0WlaC5zFn4l/zd8B DbGgvEfpMCJay9ymFAgKw9oQPRDixPHEK5kGy/DdbGii4gaYZX7lCqCZ5hZfIwhHyn61 LnlYNC0wgbJSTFccaBCmHHsPlxyPQxtlS9zK3Fm9inEI9KWoQ56wRdaYgrzMME/keKsT /gvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=W9ybfcqW; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id a17-20020a170902ecd100b001548c7c077fsi10932009plh.454.2022.04.22.15.05.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 15:05:21 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=W9ybfcqW; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 49AEA3677CD; Fri, 22 Apr 2022 13:11:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391604AbiDUTYD (ORCPT + 99 others); Thu, 21 Apr 2022 15:24:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1391880AbiDUTXi (ORCPT ); Thu, 21 Apr 2022 15:23:38 -0400 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1F5C4D25B for ; Thu, 21 Apr 2022 12:20:47 -0700 (PDT) Received: by mail-qt1-x831.google.com with SMTP id hh4so3999109qtb.10 for ; Thu, 21 Apr 2022 12:20:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=waPvZGOg2+RC3HM/74+dHiUU2qD9NP4c44RrV5MzX3U=; b=W9ybfcqWpycDEozBpfQU6LFay8XtJafMWTs7wjxBUsAiHQCiVqgK/TTf5zf9GOI2pi sypB5HYbVxR6NS02HKa1y4yTaUDEZpGyl6by7caBkMBxSp7quXUzwAlbGR7eIDCb3eOS 8v+4VQ+TsK6VtBS5+1XHr5be7NbrKIH7M8czJl4o8/VbEU0pJIPrqdo223WjtQ/fGS7+ z3PMwJnGkXpW4Mhzrv/8GVLJBMUosYFa/A+c4xAfxbAhDTiUUVKD/NXCY6R22f6EYUtB lhF7YS3NHcNJmEdQz1yBlB5xtJiWU2fP+ybgvnNXJbaOx34zazR+j2dbpKGJFYBOfAb+ mzjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=waPvZGOg2+RC3HM/74+dHiUU2qD9NP4c44RrV5MzX3U=; b=W31zngE5vhkP+/7r6leUDYEiAgX8VTQUPqwVlYR8F9E8b2uCn3qoNKdHRYLtun1DgD MT9iKRCAv/4J3vMGzhTu7mdkvLabubWWoiLMStKhpy7TnemlTxEG1FTzMTb4fAnC3AGe sugTTnTkMTHbj/Vya9lYVqaLIh0VvpVlvgfOnKqE9uqAu1Fs2cTYELBIkjStUnmGCthr 7VxGLkBWg4e8uLClIxQNMu4v1Nz88hgoDO7eQK/0CbZti9wTGf040GdqbuRr7IpaIs+b GHhCIlS8QVANiMG93SseeQ61ZYc4o28TgwV8wMB+B/Jjx/KUEPOzPWDhwkU0WNtPiZsc ZWxQ== X-Gm-Message-State: AOAM530K0pD+buua3++v+jx0PhSW0+j/aEJvhewdzPILokZa0l0KoKss 3vLJjvOvfSXbrrLw0ZQQilM= X-Received: by 2002:ac8:5f50:0:b0:2f2:1e88:f919 with SMTP id y16-20020ac85f50000000b002f21e88f919mr745715qta.535.1650568846914; Thu, 21 Apr 2022 12:20:46 -0700 (PDT) Received: from jaehee-ThinkPad-X1-Extreme.wework.com ([4.34.18.218]) by smtp.gmail.com with ESMTPSA id l9-20020a05622a174900b002f34421b01csm2567736qtk.23.2022.04.21.12.20.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 12:20:46 -0700 (PDT) From: Jaehee Park To: Larry.Finger@lwfinger.net Cc: phil@philpotter.co.uk, gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev, jhpark1013@gmail.com, Pavel Skripkin Subject: [PATCH v4 7/7] staging: r8188eu: remove unused else condition Date: Thu, 21 Apr 2022 15:20:32 -0400 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no 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 s_ret cannot return '2' so this else condition is unused. Remove this unnecessary else statement. Suggested-by: Pavel Skripkin Signed-off-by: Jaehee Park --- drivers/staging/r8188eu/core/rtw_mlme.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_mlme.c b/drivers/staging/r8188eu/core/rtw_mlme.c index d422ce87ba7c..29b8b101180b 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme.c +++ b/drivers/staging/r8188eu/core/rtw_mlme.c @@ -723,9 +723,6 @@ void rtw_surveydone_event_callback(struct adapter *adapter, u8 *pbuf) s_ret = rtw_select_and_join_from_scanned_queue(pmlmepriv); if (s_ret == _SUCCESS) { _set_timer(&pmlmepriv->assoc_timer, MAX_JOIN_TIMEOUT); - } else if (s_ret == 2) { /* there is no need to wait for join */ - _clr_fwstate_(pmlmepriv, _FW_UNDER_LINKING); - rtw_indicate_connect(adapter); } else { if (rtw_to_roaming(adapter) != 0) { if (--pmlmepriv->to_roaming == 0 || -- 2.25.1