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

Staging: hv: Cleanup vmbus_match()

In preparation for getting rid of the priv element from struct hv_driver,
cleanup vmbus_match - the setting of the drv field in struct hv_device
is not needed.
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarAbhishek Kane <v-abkane@microsoft.com>
Signed-off-by: default avatarHank Janssen <hjanssen@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 28e7f2a8
...@@ -307,12 +307,9 @@ static int vmbus_match(struct device *device, struct device_driver *driver) ...@@ -307,12 +307,9 @@ static int vmbus_match(struct device *device, struct device_driver *driver)
/* We found our driver ? */ /* We found our driver ? */
if (memcmp(&device_ctx->dev_type, &drv->dev_type, if (memcmp(&device_ctx->dev_type, &drv->dev_type,
sizeof(struct hv_guid)) == 0) { sizeof(struct hv_guid)) == 0)
device_ctx->drv = drv->priv;
match = 1; match = 1;
}
return match; return match;
} }
......
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