Skip to content

Commit 01ca482

Browse files
Xiaofei Tanrafaeljw
authored andcommitted
PM / wakeirq: remove unnecessary parentheses
Remove unnecessary parentheses found by code review. Signed-off-by: Xiaofei Tan <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent ea0d11c commit 01ca482

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/base/power/wakeirq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ void dev_pm_enable_wake_irq_check(struct device *dev,
272272
{
273273
struct wake_irq *wirq = dev->power.wakeirq;
274274

275-
if (!wirq || !((wirq->status & WAKE_IRQ_DEDICATED_MASK)))
275+
if (!wirq || !(wirq->status & WAKE_IRQ_DEDICATED_MASK))
276276
return;
277277

278278
if (likely(wirq->status & WAKE_IRQ_DEDICATED_MANAGED)) {
@@ -299,7 +299,7 @@ void dev_pm_disable_wake_irq_check(struct device *dev)
299299
{
300300
struct wake_irq *wirq = dev->power.wakeirq;
301301

302-
if (!wirq || !((wirq->status & WAKE_IRQ_DEDICATED_MASK)))
302+
if (!wirq || !(wirq->status & WAKE_IRQ_DEDICATED_MASK))
303303
return;
304304

305305
if (wirq->status & WAKE_IRQ_DEDICATED_MANAGED)

0 commit comments

Comments
 (0)