commit | f85b244ee395c774a0039c176f46fc0d3747a0ae | [log] [tgz] |
---|---|---|
author | Yajun Deng <yajun.deng@linux.dev> | Fri Dec 17 17:25:45 2021 +0800 |
committer | David S. Miller <davem@davemloft.net> | Sat Dec 18 12:35:49 2021 +0000 |
tree | 556a42c4754b29b988b23b9823a10a86d2b47ef5 | |
parent | 23044d77d6062ad1a5e26466931a7b75deaddbd7 [diff] |
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>