Skip to contentSkip to conversation

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

PATCH New Hui Su 1 participant 1 message Dec 23, 2020 VFS

lore
Share & tools
lore

Hui Su

author
#0 lore raw

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

The macro irqs_disabled is always defined in include/linux/irqflags.h, so we don't need the macro check.

---
 fs/buffer.c | 2 --
 1 file changed, 2 deletions(-)
fs/buffer.c +0 -2
index 32647d2011df..34b505542d96 100644
@@ -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
 }
 
 /*
Signature · 1 line
2.25.1