summaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorYajun Deng <yajun.deng@linux.dev>2021-10-27 09:38:56 +0800
committerJakub Kicinski <kuba@kernel.org>2021-10-27 18:13:57 -0700
commitb859a360d88d5ad239d46978c78fe2b63dd9efe5 (patch)
tree669cf311148204e1178b0c288a3f0b51bbeee47a /net/core
parent5a48585d7ec1d0e1e83539d56846c1e513ef66ea (diff)
xdp: Remove redundant warning
There is a warning in xdp_rxq_info_unreg_mem_model() when reg_state isn't equal to REG_STATE_REGISTERED, so the warning in xdp_rxq_info_unreg() is redundant. Signed-off-by: Yajun Deng <yajun.deng@linux.dev> Acked-by: Jesper Dangaard Brouer <brouer@redhat.com> Link: https://lore.kernel.org/r/20211027013856.1866-1-yajun.deng@linux.dev Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/xdp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/core/xdp.c b/net/core/xdp.c
index cc92ccb38432..5ddc29f29bad 100644
--- a/net/core/xdp.c
+++ b/net/core/xdp.c
@@ -143,8 +143,6 @@ void xdp_rxq_info_unreg(struct xdp_rxq_info *xdp_rxq)
if (xdp_rxq->reg_state == REG_STATE_UNUSED)
return;
- WARN(!(xdp_rxq->reg_state == REG_STATE_REGISTERED), "Driver BUG");
-
xdp_rxq_info_unreg_mem_model(xdp_rxq);
xdp_rxq->reg_state = REG_STATE_UNREGISTERED;