hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/base/power/wakeirq.c
....@@ -1,16 +1,5 @@
1
-/*
2
- * wakeirq.c - Device wakeirq helper functions
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
7
- *
8
- * This program is distributed "as is" WITHOUT ANY WARRANTY of any
9
- * kind, whether express or implied; without even the implied warranty
10
- * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- * GNU General Public License for more details.
12
- */
13
-
1
+// SPDX-License-Identifier: GPL-2.0
2
+/* Device wakeirq helper functions */
143 #include <linux/device.h>
154 #include <linux/interrupt.h>
165 #include <linux/irq.h>
....@@ -283,7 +272,7 @@
283272 {
284273 struct wake_irq *wirq = dev->power.wakeirq;
285274
286
- if (!wirq || !((wirq->status & WAKE_IRQ_DEDICATED_MASK)))
275
+ if (!wirq || !(wirq->status & WAKE_IRQ_DEDICATED_MASK))
287276 return;
288277
289278 if (likely(wirq->status & WAKE_IRQ_DEDICATED_MANAGED)) {
....@@ -310,7 +299,7 @@
310299 {
311300 struct wake_irq *wirq = dev->power.wakeirq;
312301
313
- if (!wirq || !((wirq->status & WAKE_IRQ_DEDICATED_MASK)))
302
+ if (!wirq || !(wirq->status & WAKE_IRQ_DEDICATED_MASK))
314303 return;
315304
316305 if (wirq->status & WAKE_IRQ_DEDICATED_MANAGED)