[1/1] PM / wakeirq: remove unnecessary parentheses
diff mbox series

Message ID 1571128290-55488-1-git-send-email-tanxiaofei@huawei.com
State Awaiting Upstream
Delegated to: Rafael Wysocki
Headers show
Series
  • [1/1] PM / wakeirq: remove unnecessary parentheses
Related show

Commit Message

Xiaofei Tan Oct. 15, 2019, 8:31 a.m. UTC
Remove unnecessary parentheses found by code review.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
---
 drivers/base/power/wakeirq.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Rafael J. Wysocki Nov. 13, 2019, 12:17 p.m. UTC | #1
On Tuesday, October 15, 2019 10:31:30 AM CET Xiaofei Tan wrote:
> Remove unnecessary parentheses found by code review.
> 
> Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
> ---
>  drivers/base/power/wakeirq.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/base/power/wakeirq.c b/drivers/base/power/wakeirq.c
> index 5ce77d1..8e02108 100644
> --- a/drivers/base/power/wakeirq.c
> +++ b/drivers/base/power/wakeirq.c
> @@ -272,7 +272,7 @@ void dev_pm_enable_wake_irq_check(struct device *dev,
>  {
>  	struct wake_irq *wirq = dev->power.wakeirq;
>  
> -	if (!wirq || !((wirq->status & WAKE_IRQ_DEDICATED_MASK)))
> +	if (!wirq || !(wirq->status & WAKE_IRQ_DEDICATED_MASK))
>  		return;
>  
>  	if (likely(wirq->status & WAKE_IRQ_DEDICATED_MANAGED)) {
> @@ -299,7 +299,7 @@ void dev_pm_disable_wake_irq_check(struct device *dev)
>  {
>  	struct wake_irq *wirq = dev->power.wakeirq;
>  
> -	if (!wirq || !((wirq->status & WAKE_IRQ_DEDICATED_MASK)))
> +	if (!wirq || !(wirq->status & WAKE_IRQ_DEDICATED_MASK))
>  		return;
>  
>  	if (wirq->status & WAKE_IRQ_DEDICATED_MANAGED)
> 

Applied as 5.5 material, thanks!

Patch
diff mbox series

diff --git a/drivers/base/power/wakeirq.c b/drivers/base/power/wakeirq.c
index 5ce77d1..8e02108 100644
--- a/drivers/base/power/wakeirq.c
+++ b/drivers/base/power/wakeirq.c
@@ -272,7 +272,7 @@  void dev_pm_enable_wake_irq_check(struct device *dev,
 {
 	struct wake_irq *wirq = dev->power.wakeirq;
 
-	if (!wirq || !((wirq->status & WAKE_IRQ_DEDICATED_MASK)))
+	if (!wirq || !(wirq->status & WAKE_IRQ_DEDICATED_MASK))
 		return;
 
 	if (likely(wirq->status & WAKE_IRQ_DEDICATED_MANAGED)) {
@@ -299,7 +299,7 @@  void dev_pm_disable_wake_irq_check(struct device *dev)
 {
 	struct wake_irq *wirq = dev->power.wakeirq;
 
-	if (!wirq || !((wirq->status & WAKE_IRQ_DEDICATED_MASK)))
+	if (!wirq || !(wirq->status & WAKE_IRQ_DEDICATED_MASK))
 		return;
 
 	if (wirq->status & WAKE_IRQ_DEDICATED_MANAGED)