]> git.baikalelectronics.ru Git - kernel.git/commit
xdp: move the if dev statements to the first
authorYajun Deng <yajun.deng@linux.dev>
Fri, 17 Dec 2021 09:25:45 +0000 (17:25 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Dec 2021 12:35:49 +0000 (12:35 +0000)
commit29b33c0c8b20f79a63df6e66ba5f10e4ed9fc9be
tree556a42c4754b29b988b23b9823a10a86d2b47ef5
parent65f84fa221e02f8bc5671c5f14fdb7c5066f5b6d
xdp: move the if dev statements to the first

The xdp_rxq_info_unreg() called by xdp_rxq_info_reg() is meaningless when
dev is NULL, so move the if dev statements to the first.

Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/xdp.c