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)
commit3f076effb9adad6a16fafd3cfe33fe530c5d428d
tree4e2fb7c65ce2c91b45f847eafb5e397081bd2da9
parenta56d99d714665591fed8527b90eef21530ea61e0
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