]> git.baikalelectronics.ru Git - kernel.git/commit
hv_netvsc: Pass net_device parameter to revoke and teardown functions
authorMohammed Gamal <mgamal@redhat.com>
Thu, 5 Apr 2018 19:09:21 +0000 (21:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Apr 2018 02:21:00 +0000 (22:21 -0400)
commitd04aa20ce5444d231f5c0d818e65c08a416d0264
tree4e2fb7c65ce2c91b45f847eafb5e397081bd2da9
parent8570dfc996cb2f79376846c73423db4be9ee5f09
hv_netvsc: Pass net_device parameter to revoke and teardown functions

The callers to netvsc_revoke_*_buf() and netvsc_teardown_*_gpadl()
already have their net_device instances. Pass them as a paramaeter to
the function instead of obtaining them from netvsc_device struct
everytime

Signed-off-by: Mohammed Gamal <mgamal@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc.c