Staging: hv: Cleanup vmbus_match()
authorK. Y. Srinivasan <kys@microsoft.com>
Tue, 26 Apr 2011 16:20:24 +0000 (09:20 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Apr 2011 22:51:47 +0000 (15:51 -0700)
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: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/vmbus_drv.c

index c85d79614f27343ea2b762bb9cfb0c41e9eaafb4..bf124a7e9dc337ff0371deb0bcd0608280a69eb7 100644 (file)
@@ -307,12 +307,9 @@ static int vmbus_match(struct device *device, struct device_driver *driver)
 
        /* We found our driver ? */
        if (memcmp(&device_ctx->dev_type, &drv->dev_type,
-                  sizeof(struct hv_guid)) == 0) {
-
-               device_ctx->drv = drv->priv;
-
+                  sizeof(struct hv_guid)) == 0)
                match = 1;
-       }
+
        return match;
 }