From: K. Y. Srinivasan Date: Fri, 22 Apr 2011 21:55:22 +0000 (-0700) Subject: Staging: hv: Cleanup blkvsc_open() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c4c58c583c1e21adc2b04316170c4fc355ab0123;p=mv-sheeva.git Staging: hv: Cleanup blkvsc_open() Given that we don't support removable media, cleanup blkvsc_open(). Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/blkvsc_drv.c b/drivers/staging/hv/blkvsc_drv.c index 3060babedab..bf8647e4089 100644 --- a/drivers/staging/hv/blkvsc_drv.c +++ b/drivers/staging/hv/blkvsc_drv.c @@ -255,20 +255,12 @@ static int blkvsc_open(struct block_device *bdev, fmode_t mode) { struct block_device_context *blkdev = bdev->bd_disk->private_data; - - mutex_lock(&blkvsc_mutex); spin_lock(&blkdev->lock); - if (!blkdev->users && blkdev->device_type == DVD_TYPE) { - spin_unlock(&blkdev->lock); - check_disk_change(bdev); - spin_lock(&blkdev->lock); - } - blkdev->users++; spin_unlock(&blkdev->lock); - mutex_unlock(&blkvsc_mutex); + return 0; }