From: K. Y. Srinivasan Date: Fri, 22 Apr 2011 21:55:21 +0000 (-0700) Subject: Staging: hv: Get rid of an unnecessary check in blkvsc_probe() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a2b9d24eafd4785e5a07924cdb5a37867bda4620;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Staging: hv: Get rid of an unnecessary check in blkvsc_probe() 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 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 35ad3d51c726..3060babedaba 100644 --- a/drivers/staging/hv/blkvsc_drv.c +++ b/drivers/staging/hv/blkvsc_drv.c @@ -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;