diff options
author | Changbin Du <changbin.du@gmail.com> | 2021-08-13 22:57:49 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-08-13 14:09:19 -0700 |
commit | afa79d08c6c8e1901cb1547591e3ccd3ec6965d9 (patch) | |
tree | 116982e91b8dbb615292bb432f64a45c277a0376 /net/core/dev.c | |
parent | 39a0876d595bd7c7512782dfcce0ee66f65bf221 (diff) | |
download | lwn-afa79d08c6c8e1901cb1547591e3ccd3ec6965d9.tar.gz lwn-afa79d08c6c8e1901cb1547591e3ccd3ec6965d9.zip |
net: in_irq() cleanup
Replace the obsolete and ambiguos macro in_irq() with new
macro in_hardirq().
Signed-off-by: Changbin Du <changbin.du@gmail.com>
Link: https://lore.kernel.org/r/20210813145749.86512-1-changbin.du@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r-- | net/core/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 88650791c360..74fd402d26dd 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -3107,7 +3107,7 @@ EXPORT_SYMBOL(__dev_kfree_skb_irq); void __dev_kfree_skb_any(struct sk_buff *skb, enum skb_free_reason reason) { - if (in_irq() || irqs_disabled()) + if (in_hardirq() || irqs_disabled()) __dev_kfree_skb_irq(skb, reason); else dev_kfree_skb(skb); |