Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1845800pxf; Sat, 3 Apr 2021 02:16:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPdsdFLppW8zfYUO95tLjpqaOLOgv2QNfaUlX1ZKXZEQAgcDXHI0wRTrC7hIu6ZbN3ZHTr X-Received: by 2002:a17:906:fa04:: with SMTP id lo4mr18117851ejb.44.1617441369271; Sat, 03 Apr 2021 02:16:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617441369; cv=none; d=google.com; s=arc-20160816; b=aWY6PftMScUKcErz7bEqJQ/YmcSIKnqvWgKZ6iVD0iLb1bMn430d5tjR+xzpEvyfS2 e5GYuN3WUJ8sgP6jF4lJnWUvYIsOwOvIZKxuAI20JWsUkKZPaMypTneWqYqoQ3d4qV9C 7X6W2/Axqx/IjVLULsMooVGDSu++PY286OIcmcF1p4V1bzyjerd8Bq3V97JU2U1fw4Ct ErjiudncnEXevbiyHlNeOjLMFqvrmdgZi4vADJSc2XpM8dVnX5yaqHjuELvo6YmVU0a8 q1EjSmGPrbBICOGqTWCUC6DbaOQk6SYnC4872LvuxFFwZzqnQO5+hXSWkuXXS0heB4tj L0SQ== 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=m+xwuMQ9miiJI3ZL7Gy8Q2GKln0XoUkaK0hGIQWaMFY=; b=n5Qtxd8goJ+aeMGXA/yHXKGmvc2OFbC/D3VyEKG2zySSmHLp42z4Elwnmc9fRaEGDU XZXkfkOLblOsmk5EivYi8MEME6uYhzgjvUnmoVWIVASKmdGZqJ6EPAD5QNEomUzuTADu ImMCnB2g6974qQapx303bAEQI3S0TTmtk/s9eeobNNV+BlvqNJZ6BgIxNvURLSXZb9En I6C/nxFNtRiTl7KFQtGc1F/zmwXlOug6n94erwhump09b9JcMtwNxGw5+jxSq0umh0yl Bb4aSUY4/Kn7c1GDnOCEfK8Ky6okKy3T8lQVotACHAjGjBYSM+YJH5EsSeP+bRo8VJ/q p+Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jXR9PoaQ; 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 w12si8608820edx.14.2021.04.03.02.15.46; Sat, 03 Apr 2021 02:16:09 -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=jXR9PoaQ; 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 S236663AbhDCJOu (ORCPT + 99 others); Sat, 3 Apr 2021 05:14:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236459AbhDCJOe (ORCPT ); Sat, 3 Apr 2021 05:14:34 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A4CBC061788 for ; Sat, 3 Apr 2021 02:14:31 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 12so3451524wmf.5 for ; Sat, 03 Apr 2021 02:14:31 -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=m+xwuMQ9miiJI3ZL7Gy8Q2GKln0XoUkaK0hGIQWaMFY=; b=jXR9PoaQ5fuqg2K1PISHtU7EW/6mprl8LtwthdIpPxbiI0AVj3qqjbwCsiiKbPeM3W U1vX2Eb4K1I+MkuYeWgQWGCHUNhJwM3gL1/HRincTVh4/RssskOyI3oDDdP4qWVPpCq6 ZmWA0s8kt7g8i80SzdNPZ3N0J/fBNC+lFqLwXv5q6Ck64HWqB9IplSxSV6SxZXjE0zFO 6rBfmRVRgjctITvlzSnKEVcEb9ZTHBfp0nti8mooMbvqd2/2eLE06/uGJFBVlqdTboMk 2/7awuGvMr/TpKIYWGenS8iQba89Kn76d/Yld/M7jhxiBMjbCc4Z6cBrh+o9t9LN5OAN d4Pw== 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=m+xwuMQ9miiJI3ZL7Gy8Q2GKln0XoUkaK0hGIQWaMFY=; b=V98Ugh+WKS1SOV66b0glldibcHIkBUp8MWIm1TMULvSS2wrEbenMbP05+TJzQVI1bd 0z4U2b9m4ebnwtxOK0UqVhiyHm4I8Bx67O6aDwF/p7Ve4Tf/0SyI6wqsI7Lqi/us9ktm HORrECwauDj7AAksY7YwXTk8m4rXF/2laRGdzxM6Izd16SgDaGtceVMg0A3MM9ikV/Kg 1ZFPLcOgdibq0Fi/aII/8tXg1Vb4rvLPA7R7oc9vtvilGqtWP6vtuKc6Brp3ANJnLvNi ao8go9SywJIJ6VNDKRIQ32lUt4FmdbAQ/rxEvnsqn+9jfhoOoLxD9ZXX1xjJwlkMU0Ln b51A== X-Gm-Message-State: AOAM533a2JOqH9/7P2yqA5LmijGmYyELYOloyvVkS7HeR8/+KO/ghBb0 I6jjHeuhTkVR4LkBK7Ij5Mw= X-Received: by 2002:a1c:4b0a:: with SMTP id y10mr15942405wma.141.1617441270184; Sat, 03 Apr 2021 02:14:30 -0700 (PDT) Received: from agape ([5.171.72.64]) by smtp.gmail.com with ESMTPSA id q9sm17286733wrp.79.2021.04.03.02.14.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Apr 2021 02:14:29 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: dan.carpenter@oracle.com, joe@perches.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH v3 10/30] staging: rtl8723bs: remove unnecessary parentheses in if-condition in core/rtw_pwrctrl.c Date: Sat, 3 Apr 2021 11:13:32 +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 fix following post-commit hook checkpatch issues: CHECK: Unnecessary parentheses around 'pwrpriv->rpwm == pslv' 26: FILE: drivers/staging/rtl8723bs/core/rtw_pwrctrl.c:269: + if ((pwrpriv->rpwm == pslv) || + ((pwrpriv->rpwm >= PS_STATE_S2) && (pslv >= PS_STATE_S2))) CHECK: Unnecessary parentheses around 'pwrpriv->rpwm >= PS_STATE_S2' 26: FILE: drivers/staging/rtl8723bs/core/rtw_pwrctrl.c:269: + if ((pwrpriv->rpwm == pslv) || + ((pwrpriv->rpwm >= PS_STATE_S2) && (pslv >= PS_STATE_S2))) CHECK: Unnecessary parentheses around 'pslv >= PS_STATE_S2' 26: FILE: drivers/staging/rtl8723bs/core/rtw_pwrctrl.c:269: + if ((pwrpriv->rpwm == pslv) || + ((pwrpriv->rpwm >= PS_STATE_S2) && (pslv >= PS_STATE_S2))) Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c index fa06144337ce..09bf25940e92 100644 --- a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c +++ b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c @@ -266,8 +266,8 @@ void rtw_set_rpwm(struct adapter *padapter, u8 pslv) if (pwrpriv->brpwmtimeout) { DBG_871X("%s: RPWM timeout, force to set RPWM(0x%02X) again!\n", __func__, pslv); } else { - if ((pwrpriv->rpwm == pslv) || - ((pwrpriv->rpwm >= PS_STATE_S2) && (pslv >= PS_STATE_S2))) + if (pwrpriv->rpwm == pslv || + (pwrpriv->rpwm >= PS_STATE_S2 && pslv >= PS_STATE_S2)) return; } -- 2.20.1