Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2595411pxf; Sun, 4 Apr 2021 07:13:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7EQWZXvF2YffTEO6KtCX+IoZ1dcKZbbXHIy83keojdVNkw6O2OTwJbIuARAW0AzLAL5EK X-Received: by 2002:a17:906:c7cc:: with SMTP id dc12mr4953745ejb.423.1617545582750; Sun, 04 Apr 2021 07:13:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617545582; cv=none; d=google.com; s=arc-20160816; b=guiMLCMejTQ2g/L6zKJ4yrqi4kS+k2SUUlyzlPnTzpYegV/K/fbnv+kyICHs4d2xLZ 4ORP0BnR3RLrkNbzWSFJ9+csAC0gePdv4KIOW/rqaJZmHClUcJgG3o/z0DQCMNK+Cfo8 0rVJmsAgf25lpS6Cg5ylefQH5AsVqX7SBiH3gBgm0KSzZtwSx8TUuLlpr9tuWJsT4gu9 96V6z1vYzPeR68CWwd9rNvfur2OAB+BZ3LV6k6E+rtrE7n7FzjsAmr8Qq5lc6AxlN6xr 5ANanht0H758yL279VzUwYhocPw0HUYAODW1J+wpqAtrcstYGEEZ4Zq3k3pKYSquyki0 O+ow== 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=ysKpIAtLH0wac6k+fRzH6Tj4h8zgv8nK4MgCChe7K7rRuxu9v3jlVl4Bb4EEiVnSKt Upop9H7cT+eXFO+yUqekPuNxpB1SJzJsYJtn3KY5ILdiSQCi2wdU2XHm9ua6LEXRcPY9 sNIwhnzLEosbcO2+Fmbner4gH9z9X6CxC3iR75MKNSlrcMPBXZkLqIRPObGX0KQq1HKK nt8YQwv4wVM19kg6vEPEd6An1VWT6REv7P0l4Oj5IM3QgyKVh4yeZ4HXJAvGpMpIJkSj DPQFjQChKScUcYp1dnk2bu5mpu+Q0wf2VsjZN/OIC38eKUSOx40NAYGh5blS47ebJ/Se Exsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QZpPuior; 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 z21si10675897eji.701.2021.04.04.07.12.40; Sun, 04 Apr 2021 07:13: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=20161025 header.b=QZpPuior; 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 S231314AbhDDOKe (ORCPT + 99 others); Sun, 4 Apr 2021 10:10:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231208AbhDDOKO (ORCPT ); Sun, 4 Apr 2021 10:10:14 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 531C7C06178C for ; Sun, 4 Apr 2021 07:10:08 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id f6so2687972wrv.12 for ; Sun, 04 Apr 2021 07:10:08 -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=QZpPuiorUwMQmgA9H90IworX86fxlDm0wbAStOXnIQO3FO25obfMIQwT+Np0NAL1xD FqYZlkFZ97uElLVY0Hty+mTz007LNjPHp7DeR0qpq7OmnQJPpAzMlr5c80Sx5iwghz+h xAz1k33eBR9SWvkowzbCsIVC/GjxwXBHbS4aVxJPJviGupW3k69xle4rE4NW7/rjQ+5t vzm1tBInye+mAsNyvj+IvTokL1q5lYVel8iJX9SV3P44+JKiSnpD/9ZHiKM7kslwBgDp viNUFUg87ZDcOxHBXDmXtk+7Hu0rqiLnRh7HN/QxLuGeX9DrgSpQguICYyUL9juttaw9 wpqQ== 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=grLIfxNXb8X2DqUorA91sTFiaZZesf18Y089k6nHQ2pprPrJh4jo00wR02ameWDsFt slCSqD7Zz+RyFYS2rxbnuUMR3OuDh2HiIMXgqp/XZf8JJd9e3Ot9om3dRPC9z/pTPy1h 1MdtGu+4AuLsBtJG2L5tyaMdF7YGLwzL2G5ZqCarf04qw0s6Mx6biB+sdcGOlj8le1sk R3gGT8nLYWpy+YHiyZAXS2qvy/Huwee3xmbPl6qEs79XX3bWNUjr8yPX1JVnMEwxCPg0 K+PcDtxtjvksnE1B2getvHiV6EhE80gDCwiRANjDj783kZioO7WSlQuR7jGtxnJn0ly3 kenQ== X-Gm-Message-State: AOAM533mnmQctILmJHagsHTb5E2ZpsAz8b8Cc/6O8Thoev9yor3GaokB /YQnScFyMBq5SF5bc9DswpJPnZTwk+kzDw== X-Received: by 2002:adf:e90e:: with SMTP id f14mr1440645wrm.75.1617545407179; Sun, 04 Apr 2021 07:10:07 -0700 (PDT) Received: from agape ([5.171.81.112]) by smtp.gmail.com with ESMTPSA id o15sm24460423wra.93.2021.04.04.07.10.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Apr 2021 07:10:06 -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 v4 10/30] staging: rtl8723bs: remove unnecessary parentheses in if-condition in core/rtw_pwrctrl.c Date: Sun, 4 Apr 2021 16:09:26 +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