mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 13:14:07 +08:00
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>
This commit is contained in:
parent
5a48585d7e
commit
b859a360d8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user