diff options
| author | Haiyang Zhang <[email protected]> | 2017-06-21 23:40:46 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-06-22 17:30:37 +0000 |
| commit | dedb459e13f05824bc33d2d861e9b576bfc8d0bb (patch) | |
| tree | dc980d0f3ccee3cd137dbe3d7819df6990cf8708 /drivers/net/hyperv/hyperv_net.h | |
| parent | samples/bpf: fix a build problem (diff) | |
| download | kernel-dedb459e13f05824bc33d2d861e9b576bfc8d0bb.tar.gz kernel-dedb459e13f05824bc33d2d861e9b576bfc8d0bb.zip | |
hv_netvsc: Remove unnecessary var link_state from struct netvsc_device_info
We simply use rndis_device->link_state in the netdev_dbg. The variable,
link_state from struct netvsc_device_info, is not used anywhere else.
Signed-off-by: Haiyang Zhang <[email protected]>
Reviewed-by: Stephen Hemminger <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
| -rw-r--r-- | drivers/net/hyperv/hyperv_net.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index b30a3c2f772b..ced947d25793 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h @@ -146,7 +146,6 @@ struct hv_netvsc_packet { struct netvsc_device_info { unsigned char mac_adr[ETH_ALEN]; - bool link_state; /* 0 - link up, 1 - link down */ int ring_size; u32 max_num_vrss_chns; u32 num_chn; @@ -165,7 +164,7 @@ struct rndis_device { struct net_device *ndev; enum rndis_device_state state; - bool link_state; + atomic_t new_req_id; spinlock_t request_lock; @@ -173,6 +172,8 @@ struct rndis_device { struct work_struct mcast_work; + bool link_state; /* 0 - link up, 1 - link down */ + u8 hw_mac_adr[ETH_ALEN]; u8 rss_key[NETVSC_HASH_KEYLEN]; u16 ind_table[ITAB_NUM]; |
