Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2740776pxb; Sun, 29 Aug 2021 02:04:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXKKWhClVHgfTstc/la6RtB5LCePU5h4wEYrPeO7EMSvrvD/yO/iHRww3VJJoEXhD3YEIG X-Received: by 2002:a17:906:f24d:: with SMTP id gy13mr14300873ejb.395.1630227889312; Sun, 29 Aug 2021 02:04:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630227889; cv=none; d=google.com; s=arc-20160816; b=AW7KwAJTJ8iWMUtlteNoNF4ZmkuTEUIC6DVAuzBXabRVw1JqYQLX3GxB27UEAMri0k WzOIAIJNjHbwwD7mJfhhilv0LQl5gY6THrbz8EjOvWVE3ioRsRyN9uqB01EEqWXzr5dE KNaqD0BXKz7Mik2/aguWEpA47O+5B06CnXt0ZTfsa7hZxsGB6XMOnyD/cudMrRRh1PO2 o0uFYIFCJaFSofYmXqruV5PXa2znjIu21/r7Xw3XPLiu5wUapxo4AtiSnektFtnbLGy7 uhHisep3iivUPYa7QnUuNSn7AJymR+/+9WcB2TQNFBzI+Y4uLXs7BUvuxePKVOXqpwOm YyCA== 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:cc:to:from:date:dkim-signature; bh=4UhAzAPVc+icCp7Y2EezPOc71pObAloaN9xXjYM1qls=; b=zozaAM2iXduY/7glW/XSQ4/b/QV6kVqOfX75ng3Sc2HzDNTbjr895dpYhYVNQt+HFr 5C7nt7uitBi8IWCctoT+ie8HhwVLjbbaLmiqv1FxzZX4iPmPYcJsblLf93Okv+bYcJNw OrJ78k+U1vDetOoLjE1FtSbt0BThcs2otzlYK5hecLwwMmUzayGDXCRAijtPx+gWQJN4 LdneKW1CUf2upzk68jeIvlcerEJDQQIsjqitpEs7lHN4Q8AJE0zBhXECx/sOrTN3EJ/Z nDLM/EqjFKhfFYbztSCd8ucoSfOAU8VO65hrDsdtlvCjVu9591vBlLL+MmtwO9ngP8jm GsDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MdjTjxH8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn10si12977288ejc.275.2021.08.29.02.03.56; Sun, 29 Aug 2021 02:04:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MdjTjxH8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234845AbhH2JCQ (ORCPT + 99 others); Sun, 29 Aug 2021 05:02:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234584AbhH2JCP (ORCPT ); Sun, 29 Aug 2021 05:02:15 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0791C061575 for ; Sun, 29 Aug 2021 02:01:23 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id f11-20020a17090aa78b00b0018e98a7cddaso7907549pjq.4 for ; Sun, 29 Aug 2021 02:01:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=4UhAzAPVc+icCp7Y2EezPOc71pObAloaN9xXjYM1qls=; b=MdjTjxH8zJRW8uWJWPTAZK1RSHyGcYMLiQabXQY/zKTEAt9ixk8Qiovp+36Zabc2Qm 2UiOf5rnkOGqf1qd5LPLm+9vhcLRJUOn7z2Q+yMyuPDdqQPYXqEs5+JWGBcWvD0NMr/o BQ2hPynd0ivspYkVbnGqOBk6feCtleyN5N8J/3O2tX6TjxEkWCZ22Ppiin8JaJ2YoK5u VW/CHpEp1ImTl5kTTJhHpW+S6a1LNG/xVIbn4UUeTnq845S5K75Yhaf8/E5IJ/1aqiXF doGnbgADJf1bZWTCAVPBExMWDnyrv5aTt4zY0UxRho8PO9y4UlbBQNNiomHEM7486E1K az1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=4UhAzAPVc+icCp7Y2EezPOc71pObAloaN9xXjYM1qls=; b=JfKCDld4nVn43Xhn/PWmvzOuzZbiQGFrDEq+YmZbt3cfpScKTDWcFuBTHcj/gbYYVG fVUTw/ASJ6liaxBBbdFfisGLwb3U+R/NCPT/WGWK6eiNLBGWTts9QAhu4RtvNLs5cvRP 3BJhOJpO4HRup9iaOkhBDDqN277/mCtuwp+q82SS8W/RabbiLEommpimxiB6WV+bxo3T VxZkocw1ZhwlNYKOtlD2flmtpBx6BGGoCds/sdwWVoPURaN/pbNDVEJ8oDIDFq0M5HeO iWWHypxxYKGVhWqnDQ7CeATDslPIy1iDSh+KNxRHUJxcqXp/UmuRaci07EzswlYR5vkD UtJQ== X-Gm-Message-State: AOAM530Nm4dPIrKrnAVvHv+Q0mm4WaeJ2IfRUqQ+6EBQYejvB/In/Z84 vH1oCk4Y+Hw2EUx55F8Byb8= X-Received: by 2002:a17:90a:1b07:: with SMTP id q7mr20143146pjq.100.1630227683234; Sun, 29 Aug 2021 02:01:23 -0700 (PDT) Received: from user ([117.98.200.228]) by smtp.gmail.com with ESMTPSA id 130sm909293pfy.175.2021.08.29.02.01.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Aug 2021 02:01:22 -0700 (PDT) Date: Sun, 29 Aug 2021 14:31:15 +0530 From: Saurav Girepunje To: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, gregkh@linuxfoundation.org, straube.linux@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: saurav.girepunje@hotmail.com Subject: [PATCH] staging: r8188eu: core: remove condition with no effect Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove the condition with no effect (if == else) and group multiple cases which execute same statement in rtw_mlme_ext.c Signed-off-by: Saurav Girepunje --- drivers/staging/r8188eu/core/rtw_mlme_ext.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/r8188eu/core/rtw_mlme_ext.c index 5a472a4954b0..4178b3c1ff57 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -453,17 +453,8 @@ void mgt_dispatcher(struct adapter *padapter, struct recv_frame *precv_frame) fallthrough; case WIFI_ASSOCREQ: case WIFI_REASSOCREQ: - _mgt_dispatcher(padapter, ptable, precv_frame); - break; case WIFI_PROBEREQ: - if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) - _mgt_dispatcher(padapter, ptable, precv_frame); - else - _mgt_dispatcher(padapter, ptable, precv_frame); - break; case WIFI_BEACON: - _mgt_dispatcher(padapter, ptable, precv_frame); - break; case WIFI_ACTION: _mgt_dispatcher(padapter, ptable, precv_frame); break; -- 2.32.0