commit | f734607e819b951bae3b436b026ec672082e9241 | [log] [tgz] |
---|---|---|
author | Jakub Kicinski <jakub.kicinski@netronome.com> | Mon Jul 30 20:43:52 2018 -0700 |
committer | David S. Miller <davem@davemloft.net> | Tue Jul 31 09:48:21 2018 -0700 |
tree | 40c4b8ce98ab2f8debaead4402320e98190eb20c | |
parent | c29c2ebd2ae0066c026045a21aa33ccbfcd8bb3c [diff] |
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: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com> Acked-by: Björn Töpel <bjorn.topel@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>