Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1084561pxb; Fri, 3 Sep 2021 23:12:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRrOKDvEWGM6FK8wgYjwcnrDn5dpi+rGw6+DfgUrbQfPdjCeG0HFTlzp2HxskP89JVFzI/ X-Received: by 2002:aa7:d2cb:: with SMTP id k11mr2737098edr.227.1630735922059; Fri, 03 Sep 2021 23:12:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630735922; cv=none; d=google.com; s=arc-20160816; b=KKnJOkeY5VBrzmoO59MPOTSoTjkPPwFvp1swApils9XkB/a3Rb3/0NRH5LzFf46j7b pSN1pECLXWNJK1I7O5TtDMiKO7AH+EF8JrrJUIDRoCC46dmY8et7z2uUEN1D15YL5RH6 suWKpzgyDxc8z6S6qi4d5O0KXXPPn2/TWzWiJwiwFZllSj69xrh1cfY7IAyC9n49e0/m op1lNVwma6ZcO05V9K2Sp8fzC3FTEszT/gJPv1rPEXvY6XEcGLdB/kFmLGxVZk4ZbSuG yIw0tT2igloNfnGRVkd7LE/BnN39DhSbSF7y2uu67Vs0+Z24OxOg6Zx6n5CqEyi/FdmL JZGg== 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=uBcl0oFTcsg+IJHeJ3hoqpsIqHeVx3Yjgs9nxKf6e0s=; b=lTymnTuyPSKsdo2X3l4VAC6XGode2ANWR1RkyQnRyT5Eipq6u2/O3SjAGCB7nk5+QL 9S7DJw/5t8yAw16mx4E5fy8cPCMZuHXRTiCx+A0/7ADFshFQah/NUvO315dTOUalSzQj Wt/ouDOaoK4iQ4SigOOGEwSQl2srzXk8zwKxzK2Zmhs/DjiXzbn4hUfhkoslUqYmZUa2 houqGH29SyGwFQfm24eFr+rE84T3eLo7wm1A0iZSsI+Im+sL7O/mO2ZdVScnfYJf8O/c N48wTerzmHttKw/Y4MFI50yGf8N8gIVv1v7O++wefJxDBSQokstTd/ku4pzdiEB7p9Hq yCTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ncYWYM4F; 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 d16si1982658edn.326.2021.09.03.23.11.28; Fri, 03 Sep 2021 23:12:02 -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=ncYWYM4F; 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 S230094AbhIDFpq (ORCPT + 99 others); Sat, 4 Sep 2021 01:45:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229896AbhIDFpq (ORCPT ); Sat, 4 Sep 2021 01:45:46 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 290E5C061575 for ; Fri, 3 Sep 2021 22:44:44 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id w8so1123883pgf.5 for ; Fri, 03 Sep 2021 22:44:44 -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=uBcl0oFTcsg+IJHeJ3hoqpsIqHeVx3Yjgs9nxKf6e0s=; b=ncYWYM4Fa33zgBPCY8QkFrC9CMQrJzsnaQC9/XhhBEODlO9dQebfwtZLDdi/C64nBq UWVJi8aLEITeApRGeW9Zf1FZwO78dKgG5j75XZX1/P2FK+hNxIVzIXDiSFsSVLGB2nbZ lfphBq6m0O6lUgXXEgshOCKYdj2+rvoSKDVlWbvseN50vseLCpuvpESJXxC3e2rhKKAc SZft8tfOxOwP3NcU6GO9HWRes7+UA1rOJnk9Sl/JsN+gOWmcyLnCMqVOlgdDNOndWVEM DajOJtlQgxb0X6B4P8m21lG6pj+76JqGE38muy9eC/RK5l2pWIO/haRaRubeIKBUKowH 5D/w== 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=uBcl0oFTcsg+IJHeJ3hoqpsIqHeVx3Yjgs9nxKf6e0s=; b=MHDj0wcz5OYABCB014gCfiVAarsVtdCcxP4WXSAxVlUKQEUCe90rMDHkixPy6J8nVf VtDnR0hAJPvzsU8rTapRtf7z0GOrufv2zuIEm41m4LuLfkQlbLDmKTGabEXMfm5SQc/k CVCFuENmW6v4H9WV0pDZI1LRuDox35OFsWP7aRgYglu06lRhcD+yZEfXAad6XQu+z4Ot w/PA6Dnlk0aTyHuZdeCh9uWCLMPnKGmF9IKsORIAFYg31wfztw+vc3fEIiFWssRYyJZP YVDHCOvzWxNaEb7/LH7B/25717SlOh/ZROze/+Mw6y/zPIyljBOhASZGh9KFkWYJA84Q mSoQ== X-Gm-Message-State: AOAM533OLD7gMhlXCa3EKOrhJvELHwSpl7DHuAhRfGGKiK1YHb3yRO0i +ES6mvfBUtDPncM/+i9tQfQ= X-Received: by 2002:a63:5902:: with SMTP id n2mr2281599pgb.305.1630734283267; Fri, 03 Sep 2021 22:44:43 -0700 (PDT) Received: from user ([117.98.200.228]) by smtp.gmail.com with ESMTPSA id v190sm1024647pfv.166.2021.09.03.22.44.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Sep 2021 22:44:42 -0700 (PDT) Date: Sat, 4 Sep 2021 11:14:37 +0530 From: Saurav Girepunje To: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, gregkh@linuxfoundation.org, straube.linux@gmail.com, fmdefrancesco@gmail.com, saurav.girepunje@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: saurav.girepunje@hotmail.com Subject: [PATCH] staging: r8188eu: hal: 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 Fixes coccicheck warning: Remove the condition with no effect (if == else) in odm.c Signed-off-by: Saurav Girepunje --- drivers/staging/r8188eu/hal/odm.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/drivers/staging/r8188eu/hal/odm.c b/drivers/staging/r8188eu/hal/odm.c index ed94f64d878d..a115bbfa8429 100644 --- a/drivers/staging/r8188eu/hal/odm.c +++ b/drivers/staging/r8188eu/hal/odm.c @@ -565,13 +565,8 @@ void odm_DIGInit(struct odm_dm_struct *pDM_Odm) pDM_DigTable->RssiHighThresh = DM_DIG_THRESH_HIGH; pDM_DigTable->FALowThresh = DM_false_ALARM_THRESH_LOW; pDM_DigTable->FAHighThresh = DM_false_ALARM_THRESH_HIGH; - if (pDM_Odm->BoardType == ODM_BOARD_HIGHPWR) { - pDM_DigTable->rx_gain_range_max = DM_DIG_MAX_NIC; - pDM_DigTable->rx_gain_range_min = DM_DIG_MIN_NIC; - } else { - pDM_DigTable->rx_gain_range_max = DM_DIG_MAX_NIC; - pDM_DigTable->rx_gain_range_min = DM_DIG_MIN_NIC; - } + pDM_DigTable->rx_gain_range_max = DM_DIG_MAX_NIC; + pDM_DigTable->rx_gain_range_min = DM_DIG_MIN_NIC; pDM_DigTable->BackoffVal = DM_DIG_BACKOFF_DEFAULT; pDM_DigTable->BackoffVal_range_max = DM_DIG_BACKOFF_MAX; pDM_DigTable->BackoffVal_range_min = DM_DIG_BACKOFF_MIN; @@ -1345,10 +1340,8 @@ static void FindMinimumRSSI(struct adapter *pAdapter) if (!check_fwstate(pmlmepriv, _FW_LINKED) && pdmpriv->EntryMinUndecoratedSmoothedPWDB == 0) pdmpriv->MinUndecoratedPWDBForDM = 0; - if (check_fwstate(pmlmepriv, _FW_LINKED)) /* Default port */ - pdmpriv->MinUndecoratedPWDBForDM = pdmpriv->EntryMinUndecoratedSmoothedPWDB; - else /* associated entry pwdb */ - pdmpriv->MinUndecoratedPWDBForDM = pdmpriv->EntryMinUndecoratedSmoothedPWDB; + + pdmpriv->MinUndecoratedPWDBForDM = pdmpriv->EntryMinUndecoratedSmoothedPWDB; } void odm_RSSIMonitorCheckCE(struct odm_dm_struct *pDM_Odm) -- 2.32.0