netvsc: use typed pointer for internal state
authorstephen hemminger <stephen@networkplumber.org>
Thu, 8 Jun 2017 23:21:20 +0000 (16:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Jun 2017 16:15:02 +0000 (12:15 -0400)
The element netvsc_device:extension is always a pointer to RNDIS
information.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/hyperv_net.h

index 262b2ea576a38e4bb7d1c442f2dfcbc2c40fa302..f82d54e0208c32bd31ce9dfd0ddd0f99129c625d 100644 (file)
@@ -763,8 +763,7 @@ struct netvsc_device {
 
        refcount_t sc_offered;
 
-       /* Holds rndis device info */
-       void *extension;
+       struct rndis_device *extension;
 
        int ring_size;