Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp335815pxf; Thu, 1 Apr 2021 02:23:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAhhqICjwN02R5xjp3i7X5rqYCJXKl1awXhZZFH4lE4HBqZAiSk563Qo9xyN9un9Ve527P X-Received: by 2002:a05:6402:1691:: with SMTP id a17mr8802777edv.336.1617269032566; Thu, 01 Apr 2021 02:23:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617269032; cv=none; d=google.com; s=arc-20160816; b=TYUYJQ6zFsT4GuVuDiM/nSEeqJCDgsc7qN0XwaqsnLcW17Sgnt8bulL/gnDS71B4iK rEDto0ahC4F+8ltEPU/pAZ3eoax2Ei7tD24DHNbwHpjdq7jAQ340ZDIL3uWF21aDh34b owI0dr/vmVk8iNJchqRrsgXRNJxEZ2qY169xffn8z3J7p5/o7aB9FPXQVa2gXersvrI4 TeEwmBUZyYgLCJl4aFHGHvHlPyko1fxO/kdtOuujGxALvNx0tLva+BzRho6qMJ0FgR5f dQWslfiYBlmptKZd59QGsgPxMLXy2oe4tpAH/mhDWVT0Kj+a4wsmSSToQQ4lJ7iLlV3h tlOA== 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=fZoX+gcDb3Jy18EAvERN1m52sSx5ol5SrYTmapPbGFM=; b=KpMJVgNhyUuGKpg8RkkVbshpeQjsyfJUThwW3YOIV6nb59vOmBZCdTH36S9j9qymRo uhxRZDBgOelsJzrCA5tle50zF1RcEhDjos/FyPgofyXRRvW0twh+y1bDcMuqDzNaXQya 8zBW1Kot/ZDUGyJyZMOVgAygQ5vrFOv8szKGTyPHjKYZs8diZYVrd7pJg4bukAZHmGrb WN2V9IgnBDRlwGP51+xdjvpvEn9d2sukV9S282tu1coaCU0p8Sxgk1pgOtSm4XSKEjLb uoVwZQaAK+n08UxI521qGinUYU9fTxMjjg7yXm7nKz3ZWREXzGmLzENQqBkn4ABcnDcg rweA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=c8qLMSuU; 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 d17si4000926edv.29.2021.04.01.02.23.30; Thu, 01 Apr 2021 02:23:52 -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=c8qLMSuU; 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 S233842AbhDAJWd (ORCPT + 99 others); Thu, 1 Apr 2021 05:22:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233769AbhDAJVo (ORCPT ); Thu, 1 Apr 2021 05:21:44 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2A69C0613E6 for ; Thu, 1 Apr 2021 02:21:43 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id u21so1802809ejo.13 for ; Thu, 01 Apr 2021 02:21:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fZoX+gcDb3Jy18EAvERN1m52sSx5ol5SrYTmapPbGFM=; b=c8qLMSuUvW7O8XKFffGsVUB88bbNVNadGNaUEIWDZfLsaiEFNGYragC3sNLhsKs4KO 7nseukTup75+zaYe3G4Elb9QexF9cFgKtvixrtUvZqqjSCApnAKFdwWyrjOQxAAgBgnS UZUO9n7T+4ISW+yPpOHJIriT//mTgriavAK2GDlK4bZRufpZPnBxetvx5FyPE67kFRJC 9bXfE3Q4KZjANhkNMHh4rx29Gb51bEw9AYjTvz+BsN+T3KvxNyU3GIycSdsJ07MCNm5X Ni2yGL6QCQ4q+hskxgYqhNOQIQAr8EPdDKnoGBHNh68DLr0bg5U45BPVTZQZTixclxVy jZQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fZoX+gcDb3Jy18EAvERN1m52sSx5ol5SrYTmapPbGFM=; b=J9l/JwLIWLEuMn4TBFdprE7EfwCpB5e6cip0Q6iKlB6rWhLkq0SG3M1LH5Ua8kzRFP bzKnJuFlWT6zjP2rO6gXTvBStQHNkoPveN9fwlAZJ0AMoEcifmC2oxBb7SJ5uZ93MSzQ jqXx34Kse1BdbDREDWn/NE7zQseV0q2Oe3JthDD/8RV3stEYQt7je9s4ZJSmyuxB0+wu 0UwhPMn7BvB4UnWuHzaJ5nqNDrfNQFBaGS/xYJIZSjr0a35TK3MluhUA3MMOjc7EvamT 1wamXyBfouy2/NG2DrzQ4vYHDsv1maDSgHa2QWiF+4jkRM1UkfwkouTB9bCogJDWr2en s+4w== X-Gm-Message-State: AOAM531z4Ye6eAj0gmIBT2bq3hJ+RgTj2VXWt3pMzWH5FTIFsu0/zIeD +4CwaUZhUXs0TiIOcdFFAUw= X-Received: by 2002:a17:906:af97:: with SMTP id mj23mr8363312ejb.419.1617268902696; Thu, 01 Apr 2021 02:21:42 -0700 (PDT) Received: from agape ([5.171.80.247]) by smtp.gmail.com with ESMTPSA id y17sm2487620ejf.116.2021.04.01.02.21.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Apr 2021 02:21:42 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: joe@perches.com, dan.carpenter@oracle.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH 12/49] staging: rtl8723bs: remove empty if-else block in core/rtw_mlme.c Date: Thu, 1 Apr 2021 11:20:42 +0200 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org remove emtpy if else block, the condition is just a value check Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c index 09409330bf9d..84f348ab807b 100644 --- a/drivers/staging/rtl8723bs/core/rtw_mlme.c +++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c @@ -1251,10 +1251,6 @@ void rtw_joinbss_event_prehandle(struct adapter *adapter, u8 *pbuf) rtw_get_encrypt_decrypt_from_registrypriv(adapter); - if (pmlmepriv->assoc_ssid.SsidLength == 0) - ; - else - the_same_macaddr = !memcmp(pnetwork->network.MacAddress, cur_network->network.MacAddress, ETH_ALEN); pnetwork->network.Length = get_wlan_bssid_ex_sz(&pnetwork->network); -- 2.20.1