Staging: hv: Fix a jump label (Cleanup) in blkvsc_drv

One of the goto labels was named Cleanup; change it to cleanup.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@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-22 14:55:23 -07:00 коммит произвёл Greg Kroah-Hartman
Родитель c4c58c583c
Коммит d87d707d60
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -963,7 +963,7 @@ static int blkvsc_probe(struct device *device)
blkdev = kzalloc(sizeof(struct block_device_context), GFP_KERNEL); blkdev = kzalloc(sizeof(struct block_device_context), GFP_KERNEL);
if (!blkdev) { if (!blkdev) {
ret = -ENOMEM; ret = -ENOMEM;
goto Cleanup; goto cleanup;
} }
INIT_LIST_HEAD(&blkdev->pending_list); INIT_LIST_HEAD(&blkdev->pending_list);
@ -977,14 +977,14 @@ static int blkvsc_probe(struct device *device)
SLAB_HWCACHE_ALIGN, NULL); SLAB_HWCACHE_ALIGN, NULL);
if (!blkdev->request_pool) { if (!blkdev->request_pool) {
ret = -ENOMEM; ret = -ENOMEM;
goto Cleanup; goto cleanup;
} }
/* Call to the vsc driver to add the device */ /* Call to the vsc driver to add the device */
ret = storvsc_drv_obj->base.dev_add(device_obj, &device_info); ret = storvsc_drv_obj->base.dev_add(device_obj, &device_info);
if (ret != 0) if (ret != 0)
goto Cleanup; goto cleanup;
blkdev->device_ctx = device_obj; blkdev->device_ctx = device_obj;
/* this identified the device 0 or 1 */ /* this identified the device 0 or 1 */
@ -1027,7 +1027,7 @@ static int blkvsc_probe(struct device *device)
} }
} else { } else {
ret = -1; ret = -1;
goto Cleanup; goto cleanup;
} }
DPRINT_INFO(BLKVSC_DRV, "blkvsc registered for major %d!!", major); DPRINT_INFO(BLKVSC_DRV, "blkvsc registered for major %d!!", major);
@ -1035,7 +1035,7 @@ static int blkvsc_probe(struct device *device)
blkdev->gd = alloc_disk(BLKVSC_MINORS); blkdev->gd = alloc_disk(BLKVSC_MINORS);
if (!blkdev->gd) { if (!blkdev->gd) {
ret = -1; ret = -1;
goto Cleanup; goto cleanup;
} }
blkdev->gd->queue = blk_init_queue(blkvsc_request, &blkdev->lock); blkdev->gd->queue = blk_init_queue(blkvsc_request, &blkdev->lock);
@ -1074,7 +1074,7 @@ static int blkvsc_probe(struct device *device)
Remove: Remove:
storvsc_drv_obj->base.dev_rm(device_obj); storvsc_drv_obj->base.dev_rm(device_obj);
Cleanup: cleanup:
if (blkdev) { if (blkdev) {
if (blkdev->request_pool) { if (blkdev->request_pool) {
kmem_cache_destroy(blkdev->request_pool); kmem_cache_destroy(blkdev->request_pool);