Skip to content
Commit f734607e authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller
Browse files

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: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: default avatarQuentin Monnet <quentin.monnet@netronome.com>
Acked-by: default avatarBjörn Töpel <bjorn.topel@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c29c2ebd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment