Staging: hv: Get rid of an unnecessary check in blkvsc_probe()
authorK. Y. Srinivasan <kys@microsoft.com>
Fri, 22 Apr 2011 21:55:21 +0000 (14:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 25 Apr 2011 23:22:56 +0000 (16:22 -0700)
It is never the case that the dev_add function pointer will not be set
(we set it in this code!). Get rid of this meaningless check.

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>
drivers/staging/hv/blkvsc_drv.c

index 35ad3d51c726203f41d492913ded413643498c09..3060babedaba0f6bdc8458b05cdd0e7dac56fea2 100644 (file)
@@ -968,11 +968,6 @@ static int blkvsc_probe(struct device *device)
        static int ide1_registered;
 
 
-       if (!storvsc_drv_obj->base.dev_add) {
-               ret = -1;
-               goto Cleanup;
-       }
-
        blkdev = kzalloc(sizeof(struct block_device_context), GFP_KERNEL);
        if (!blkdev) {
                ret = -ENOMEM;