2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 12:14:01 +08:00

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: 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>
This commit is contained in:
K. Y. Srinivasan 2011-04-26 09:20:24 -07:00 committed by Greg Kroah-Hartman
parent 28e7f2a85d
commit de632a2b5f

View File

@ -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;
} }