Skip to content

Commit

Permalink
xdp: Remove redundant warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yajun Deng authored and Jakub Kicinski committed Oct 28, 2021
1 parent 5a48585 commit b859a36
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/core/xdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b859a36

Please sign in to comment.