diff mbox series

mm/buffer.c: remove the macro check in check_irqs_on()

Message ID 20201223063002.GA1526597@ubuntu-A520I-AC (mailing list archive)
State New, archived
Headers show
Series mm/buffer.c: remove the macro check in check_irqs_on() | expand

Commit Message

Hui Su Dec. 23, 2020, 6:30 a.m. UTC
The macro irqs_disabled is always defined in include/linux/irqflags.h,
so we don't need the macro check.

Signed-off-by: Hui Su <sh_def@163.com>
---
 fs/buffer.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/fs/buffer.c b/fs/buffer.c
index 32647d2011df..34b505542d96 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -1247,9 +1247,7 @@  static DEFINE_PER_CPU(struct bh_lru, bh_lrus) = {{ NULL }};
 
 static inline void check_irqs_on(void)
 {
-#ifdef irqs_disabled
 	BUG_ON(irqs_disabled());
-#endif
 }
 
 /*