Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp381388pxb; Sun, 10 Oct 2021 00:10:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKgqyz/G+COH52lo2VGAJvCAb7D1/8T48W1hETt//EjsAUWWX2N4FuznYtzK8Ol7RAyazo X-Received: by 2002:a17:906:e089:: with SMTP id gh9mr16944058ejb.320.1633849834173; Sun, 10 Oct 2021 00:10:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633849834; cv=none; d=google.com; s=arc-20160816; b=J1URMub3fWHCHzGcF9b3+RvhchFrnvDOR8nws/ScTAwcJ+C08XbJYRM9z8z1FaHAc0 jyeV6tKpmEM7A+E8hVqQcB4heu5PJkm/KdAmDG1he/eCXaXjpxf49Bcm9Olf2v8ZzYu9 9eItBbLGObLII+jZ7YeyAJj8kvwOYIr4dIzr55gJyWRVLjf6o6MGbqhJO/goErnrxkeY 3FQ5nh0MG719ufeTxZfknikJmSew/qQ1QXCh0s/kbrBlJ3Qkpby9oO5dZJiaanl85d5A 7S6Ellpj5/oQiU+1HUNVRHmtniuGo4p4v38ZsqAygTp0+sozdqsfPfzs9troePpL43ef hZNg== 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=NnvNITiJrBSPHawLF3zDlRAc4rrEXIDC7UHTgO1Ku1I=; b=q8N666V+XEv7jMoLmfS5/HjKz2OTZkrhj8al3rAIukBd7fWNVXWlJU0Tll83fTnuaz DmYBqYIDuZcNX937bspnGFpN85Zx55/LQpaThnZgNwTIrbgFLA+PAlllfEhVA9Rz0ial FHgR8yH+5HpgVrKkHUv7GQfIsiiO2f0g1Nm7/Th5g+nXU4DYLibbVD1uCYsGnxI67skT EpYUQ8yqioywt0/zwXnzt8k0a3Bv8xpi1nojT70TN9jkLE4I2NkJXw+FN6UdGRT7pWxc XJKVQoE5kBrWboZvznZDl88Ejh4d+k7HGF66wfZX6X80r7AEfBQnZ4KgAPYkCFEfN8p2 8bcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=q12ZZL84; 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 i1si5884948ejo.756.2021.10.10.00.10.10; Sun, 10 Oct 2021 00:10:34 -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=20210112 header.b=q12ZZL84; 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 S230425AbhJJHKv (ORCPT + 99 others); Sun, 10 Oct 2021 03:10:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230315AbhJJHKu (ORCPT ); Sun, 10 Oct 2021 03:10:50 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4491EC061570 for ; Sun, 10 Oct 2021 00:08:52 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id e7so7715718pgk.2 for ; Sun, 10 Oct 2021 00:08:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=NnvNITiJrBSPHawLF3zDlRAc4rrEXIDC7UHTgO1Ku1I=; b=q12ZZL84Tkbasfna4BmFiJlCpPt18tKqcP6uP2W9BOXWKfV1gurpiQYaWra73AzouX VpCyCWrPiGING82efBBsZMAeEAgsk1iYeLCqHQrHNXyLNrPRwQJSxSzxrf/hickh+FiP dErt4DFQh83+V9ocCx0FRnwn49CkaCj+a8vNAbVLWamQqQ2tvoJYR0oGZO7lq35lJNR0 5B8YQapoguD9wrYFWDbeUW9W3Sh7SXnYisZAytcCRuPL/BxEsllS1m/aiyMx+M1TCAyH MTrhvX7H73CcpSdlbYsKunl1WAwMhoR/Oj3hEGc2S/ZIlFaMKG5UbvyMrExbiRLrBrW+ BF8A== 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:cc:subject:message-id:mime-version :content-disposition; bh=NnvNITiJrBSPHawLF3zDlRAc4rrEXIDC7UHTgO1Ku1I=; b=WLeS/bHEB1uCOJqI14QaleqcoO6j6NbH9bChDYlOi5MVT1EG4XTEwYcpah22fd5H7X F9lOA5n3+uhXJqNKmCOJFpjbmkvp6c4b52uzA+q4Tqgap3MlGyx/kkIcQhkloAiQl7nZ uPr5X51+Afm5L6Pgf2ngRpnm5SsWxFvBk1N24nn4GJgpIVL1tsXACzf6Ut+LVAzdiRLr IXY7M7k6Si4mIeIlRBL36syM0PwrW95TqmNuSW2WYco1Q7wT7EgU2K5mzMQ1Oww58ueP 5/TQGXzV0ie3QypzHAn5VqHduVqgLywUUSuMy9zZA7svqm0ws+bGLEIccT705y8TfsaC Rx/A== X-Gm-Message-State: AOAM533tdPUANmIDO72m42gGeNE2NBYd+VHM4xxlkaAN9FSY4QrPm7y2 8DSPj48QuRiEda2CKlcS1v8= X-Received: by 2002:a63:d19:: with SMTP id c25mr12667130pgl.393.1633849731682; Sun, 10 Oct 2021 00:08:51 -0700 (PDT) Received: from user ([223.230.43.197]) by smtp.gmail.com with ESMTPSA id u24sm3844457pfm.81.2021.10.10.00.08.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Oct 2021 00:08:51 -0700 (PDT) Date: Sun, 10 Oct 2021 12:38:45 +0530 From: Saurav Girepunje To: gregkh@linuxfoundation.org, fabioaiuto83@gmail.com, marcocesati@gmail.com, dan.carpenter@oracle.com, hdegoede@redhat.com, saurav.girepunje@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: saurav.girepunje@hotmail.com Subject: [PATCH] staging: rtl8723bs: hal: remove duplicate check 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 'bPerformance' from if condition check. As on previous if condition it is already check for same variable. Signed-off-by: Saurav Girepunje --- drivers/staging/rtl8723bs/hal/odm_DIG.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/hal/odm_DIG.c b/drivers/staging/rtl8723bs/hal/odm_DIG.c index beda7b8a7c6a..7e92c373cddb 100644 --- a/drivers/staging/rtl8723bs/hal/odm_DIG.c +++ b/drivers/staging/rtl8723bs/hal/odm_DIG.c @@ -544,7 +544,7 @@ void odm_DIG(void *pDM_VOID) /* 1 Adjust initial gain by false alarm */ if (pDM_Odm->bLinked && bPerformance) { - if (bFirstTpTarget || (FirstConnect && bPerformance)) { + if (bFirstTpTarget || FirstConnect) { pDM_DigTable->LargeFAHit = 0; if (pDM_Odm->RSSI_Min < DIG_MaxOfMin) { -- 2.32.0