Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259472
b: refs/heads/master
c: e8e2704
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Jun 7, 2011
1 parent 547549f commit 7386544
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e826f1d505d3a6bfc304addc7f83c7afcc31c830
refs/heads/master: e8e27047746d1977bf547f93e701765f5ce6ec5f
12 changes: 6 additions & 6 deletions trunk/drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ static ssize_t vmbus_show_device_attr(struct device *dev,
struct device_attribute *dev_attr,
char *buf)
{
struct hv_device *device_ctx = device_to_hv_device(dev);
struct hv_device *hv_dev = device_to_hv_device(dev);
struct hv_device_info device_info;

memset(&device_info, 0, sizeof(struct hv_device_info));

get_channel_info(device_ctx, &device_info);
get_channel_info(hv_dev, &device_info);

if (!strcmp(dev_attr->attr.name, "class_id")) {
return sprintf(buf, "{%02x%02x%02x%02x-%02x%02x-%02x%02x-"
Expand Down Expand Up @@ -300,10 +300,10 @@ static int vmbus_match(struct device *device, struct device_driver *driver)
{
int match = 0;
struct hv_driver *drv = drv_to_hv_drv(driver);
struct hv_device *device_ctx = device_to_hv_device(device);
struct hv_device *hv_dev = device_to_hv_device(device);

/* We found our driver ? */
if (memcmp(&device_ctx->dev_type, &drv->dev_type,
if (memcmp(&hv_dev->dev_type, &drv->dev_type,
sizeof(struct hv_guid)) == 0)
match = 1;

Expand Down Expand Up @@ -387,9 +387,9 @@ static void vmbus_shutdown(struct device *child_device)
*/
static void vmbus_device_release(struct device *device)
{
struct hv_device *device_ctx = device_to_hv_device(device);
struct hv_device *hv_dev = device_to_hv_device(device);

kfree(device_ctx);
kfree(hv_dev);

}

Expand Down

0 comments on commit 7386544

Please sign in to comment.