Commit b13cc345 authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman

Staging: hv: netvsc: Rename rndisDevice to rndis_device

Rename rndisDevice to rndis_device.
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 86c921af
...@@ -690,11 +690,11 @@ int rndis_filter_device_add(struct hv_device *dev, ...@@ -690,11 +690,11 @@ int rndis_filter_device_add(struct hv_device *dev,
{ {
int ret; int ret;
struct netvsc_device *net_device; struct netvsc_device *net_device;
struct rndis_device *rndisDevice; struct rndis_device *rndis_device;
struct netvsc_device_info *deviceInfo = additional_info; struct netvsc_device_info *deviceInfo = additional_info;
rndisDevice = get_rndis_device(); rndis_device = get_rndis_device();
if (!rndisDevice) if (!rndis_device)
return -ENODEV; return -ENODEV;
/* /*
...@@ -704,7 +704,7 @@ int rndis_filter_device_add(struct hv_device *dev, ...@@ -704,7 +704,7 @@ int rndis_filter_device_add(struct hv_device *dev,
*/ */
ret = netvsc_device_add(dev, additional_info); ret = netvsc_device_add(dev, additional_info);
if (ret != 0) { if (ret != 0) {
kfree(rndisDevice); kfree(rndis_device);
return ret; return ret;
} }
...@@ -712,11 +712,11 @@ int rndis_filter_device_add(struct hv_device *dev, ...@@ -712,11 +712,11 @@ int rndis_filter_device_add(struct hv_device *dev,
/* Initialize the rndis device */ /* Initialize the rndis device */
net_device = hv_get_drvdata(dev); net_device = hv_get_drvdata(dev);
net_device->extension = rndisDevice; net_device->extension = rndis_device;
rndisDevice->net_dev = net_device; rndis_device->net_dev = net_device;
/* Send the rndis initialization message */ /* Send the rndis initialization message */
ret = rndis_filter_init_device(rndisDevice); ret = rndis_filter_init_device(rndis_device);
if (ret != 0) { if (ret != 0) {
/* /*
* TODO: If rndis init failed, we will need to shut down the * TODO: If rndis init failed, we will need to shut down the
...@@ -725,21 +725,21 @@ int rndis_filter_device_add(struct hv_device *dev, ...@@ -725,21 +725,21 @@ int rndis_filter_device_add(struct hv_device *dev,
} }
/* Get the mac address */ /* Get the mac address */
ret = rndis_filter_query_device_mac(rndisDevice); ret = rndis_filter_query_device_mac(rndis_device);
if (ret != 0) { if (ret != 0) {
/* /*
* TODO: shutdown rndis device and the channel * TODO: shutdown rndis device and the channel
*/ */
} }
memcpy(deviceInfo->mac_adr, rndisDevice->hw_mac_adr, ETH_ALEN); memcpy(deviceInfo->mac_adr, rndis_device->hw_mac_adr, ETH_ALEN);
rndis_filter_query_device_link_status(rndisDevice); rndis_filter_query_device_link_status(rndis_device);
deviceInfo->link_state = rndisDevice->link_stat; deviceInfo->link_state = rndis_device->link_stat;
dev_info(&dev->device, "Device MAC %pM link state %s", dev_info(&dev->device, "Device MAC %pM link state %s",
rndisDevice->hw_mac_adr, rndis_device->hw_mac_adr,
((deviceInfo->link_state) ? ("down\n") : ("up\n"))); ((deviceInfo->link_state) ? ("down\n") : ("up\n")));
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment