Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4686522ioa; Wed, 27 Apr 2022 08:59:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUyCSdL7B2xukGnZ9HSxTUbT7lU7tGepXcMx2turrXVY+Cbye4HMP5E9afywcUQ9uWQsi9 X-Received: by 2002:a17:902:eb8e:b0:15d:11f5:59e7 with SMTP id q14-20020a170902eb8e00b0015d11f559e7mr16622686plg.32.1651075175775; Wed, 27 Apr 2022 08:59:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651075175; cv=none; d=google.com; s=arc-20160816; b=v0rXpcTm3FHwtFq3Tc7QqhnPUsmgkq24LPZDf2So74vTOjqWCTpAN7YfGqPU7ZfRuK lpkE87+S2UYuIsLtXw1/j3hZi9UBRTrmA3khDKNsY6+0iTJL0JwERvxjYWJdw6aBpuqC 40zE1RO+s5a6weGdSSHGMf4Ij4CckcGfQCj5jIhBx6oGAtbASzGaoSzgtvIwG4RzGJiI Qt1oObXbxVGMDCMh8os5wVU5yY0HDsA5cswuHhB8gkZ8EGbozDN9gan+lK40lS3wZE2f X9Dkuf2DeTxAfZCI23mNCn3PereZIuwTbMGFWIcX2dml1MT671/njghlzDGzxUJuuH4G YEXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date:dkim-signature; bh=cyrolNltUUpbs4yZr4ZZ4cVcFuuThjMYIy0lsDeAp/M=; b=bZRFj7+nfNk9eehKkiTB9hyparPR/9pDnfvhCKsxb0v07HDrxJ9I2M6ykrk9SPqx3Y JcFyXCG4vP8iAFYMj4yqwvmpm2vfIqE72jYdG19s73n0RvTnwFJ8BsXUKBrqbjoWuSW8 xk/F3qmb3D1j3PdrRe8OVUbrTOPyWUllH+Rnkvw1O61xVkWPm9m5KiIwcWysO8jceYdN PT90OQ2Q6naE0R5+BDvqycq7EwDhebPy24nPNUSQ8QrIUg3MMUgLl9R+pzm2V18IjRug 05ej5qx5NW+VADHKNbL9x3+JiNYbCMAWmxQwjc9WYnUQz9T7cJLtCIZFXWkMGcKrWCw7 Izmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ga7PA3xJ; 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 v14-20020a1709028d8e00b0015cfa9a0a25si1879140plo.361.2022.04.27.08.59.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 08:59:35 -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=ga7PA3xJ; 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 D9D691102A0; Wed, 27 Apr 2022 08:32:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239742AbiD0PfW (ORCPT + 99 others); Wed, 27 Apr 2022 11:35:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239700AbiD0PfV (ORCPT ); Wed, 27 Apr 2022 11:35:21 -0400 Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94C0F35248 for ; Wed, 27 Apr 2022 08:32:08 -0700 (PDT) Received: by mail-qk1-x729.google.com with SMTP id z126so1556195qkb.2 for ; Wed, 27 Apr 2022 08:32:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:subject:message-id:mime-version:content-disposition; bh=cyrolNltUUpbs4yZr4ZZ4cVcFuuThjMYIy0lsDeAp/M=; b=ga7PA3xJYU6LHhoM5kPggCpCEGKJ5eM6EcSGUEXJtH4FpksmzO2XBrq+/HeMYvYFj8 X3BoK8dWB5ySh81Nftik79G1npYH1rdTU87BqwpYU6iRheaSm46R4tt+Tyd+S7WusV5m 2280iBykRrNhWzK5CQQqzsqBE/sjQVg88IMabVMIz8rGHyKZjNplv8KS0P/oNK9cshYI niTk4ChR7fCfNGXiD6KVwZYcQSyWReXYe/PRoRKVM0L9GU1dw/z72QxGlS4nLHJKFs+N hKrAM2Rbj+1XmZpHMKsXQ1w0NaOZP7eMRS118X7QN0OoxCIKzTkWLU260dQfAn0CI70o 7PoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=cyrolNltUUpbs4yZr4ZZ4cVcFuuThjMYIy0lsDeAp/M=; b=lsUXTnybmZ8QXoLgdr5MJ/yJ9l16k7nBWTyEvkaOt6Znmb7DPuqVXwo9TR47xzPZhW sPIL1X3C+4Y8CImA/9WkgigNRvH0tnNxQG7pM/vERNkIbP0Mq3rm+09qJYz+WX6wQTkD wDIP1y2W/RLtX9Kbs51QAFe9MFxj96UomohWDDH+bs2tJHGhTKA+9NTI4TaltS3kmmfz 7s06pCujIn6Wcf8jCHkzsGLZROji21BlscTkiFtI9kRhgfvmHO3/fCbvVPfqlUqbM+u7 6kolqmtKVbkTjs4ayzrRaIXMVj6uZcKLwbCAsU/H8E4ovHc/83z5xFpqOBM/q0ROl0g4 5GKA== X-Gm-Message-State: AOAM530JXD6xbiZxxt1fdk+nXiZlTkuCg45QAQjUjVes9ZIP0l7FJUcm fiBxMhjFW6KbSDwfGKiprdo= X-Received: by 2002:a37:a853:0:b0:69f:7f28:d90f with SMTP id r80-20020a37a853000000b0069f7f28d90fmr4672410qke.385.1651073527688; Wed, 27 Apr 2022 08:32:07 -0700 (PDT) Received: from jaehee-ThinkPad-X1-Extreme ([4.34.18.218]) by smtp.gmail.com with ESMTPSA id x9-20020a05622a000900b002f37b3537eesm3085759qtw.1.2022.04.27.08.32.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 08:32:07 -0700 (PDT) Date: Wed, 27 Apr 2022 11:32:03 -0400 From: Jaehee Park To: Larry Finger , Phillip Potter , Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, jhpark1013@gmail.com Subject: [PATCH v2] staging: r8188eu: remove unused else condition Message-ID: <20220427153203.GA503502@jaehee-ThinkPad-X1-Extreme> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 rtw_select_and_join_from_scanned_queue() cannot return '2' so this else condition is unused. Remove this unnecessary else statement. Suggested-by: Pavel Skripkin Signed-off-by: Jaehee Park --- patch v2: - fixed the patch message 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