Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259476
b: refs/heads/master
c: d6c1c5d
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Jun 7, 2011
1 parent f7f7704 commit f96fcc0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 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: 6de925b18936c1f756981ba70a7d9915888a355d
refs/heads/master: d6c1c5de4e77d75e251bf30d68c99b7feae82ea2
16 changes: 6 additions & 10 deletions trunk/drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ static int vmbus_bus_init(int irq)
ret = hv_init();
if (ret != 0) {
pr_err("Unable to initialize the hypervisor - 0x%x\n", ret);
goto cleanup;
return ret;
}

/* Initialize the bus context */
Expand All @@ -544,10 +544,8 @@ static int vmbus_bus_init(int irq)

/* Now, register the bus with LDM */
ret = bus_register(&hv_bus);
if (ret) {
ret = -1;
goto cleanup;
}
if (ret)
return ret;

/* Get the interrupt resource */
ret = request_irq(irq, vmbus_isr, IRQF_SAMPLE_RANDOM,
Expand All @@ -559,8 +557,7 @@ static int vmbus_bus_init(int irq)

bus_unregister(&hv_bus);

ret = -1;
goto cleanup;
return ret;
}

vector = IRQ0_VECTOR + irq;
Expand All @@ -574,14 +571,13 @@ static int vmbus_bus_init(int irq)
if (ret) {
free_irq(irq, hv_acpi_dev);
bus_unregister(&hv_bus);
goto cleanup;
return ret;
}


vmbus_request_offers();

cleanup:
return ret;
return 0;
}

/**
Expand Down

0 comments on commit f96fcc0

Please sign in to comment.