Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249136
b: refs/heads/master
c: a31de96
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Apr 25, 2011
1 parent 1714fe6 commit 5c34019
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 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: c425065a18f3e8d4491c4ed4925af97b45a2015c
refs/heads/master: a31de969bf3f33456975f16d14519c1ff3803ae8
15 changes: 3 additions & 12 deletions trunk/drivers/staging/hv/blkvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,22 +556,12 @@ static int blkvsc_remove(struct device *device)
struct hv_device *device_obj = device_to_hv_device(device);
struct block_device_context *blkdev = dev_get_drvdata(device);
unsigned long flags;
int ret;


if (!storvsc_drv_obj->base.dev_rm)
return -1;

/*
* Call to the vsc driver to let it know that the device is being
* removed
*/
ret = storvsc_drv_obj->base.dev_rm(device_obj);
if (ret != 0) {
/* TODO: */
DPRINT_ERR(BLKVSC_DRV,
"unable to remove blkvsc device (ret %d)", ret);
}
storvsc_drv_obj->base.dev_rm(device_obj);

/* Get to a known state */
spin_lock_irqsave(&blkdev->lock, flags);
Expand Down Expand Up @@ -604,7 +594,8 @@ static int blkvsc_remove(struct device *device)

kfree(blkdev);

return ret;
return 0;

}

static void blkvsc_shutdown(struct device *device)
Expand Down

0 comments on commit 5c34019

Please sign in to comment.