xsk: refactor xdp_umem_assign_dev()
Return early and only take the ref on dev once there is no possibility of failing. Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: NQuentin Monnet <quentin.monnet@netronome.com> Acked-by: NBjörn Töpel <bjorn.topel@gmail.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
想要评论请 注册 或 登录