Commit a2b9d24e authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman

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: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarHank Janssen <hjanssen@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e01c33b8
...@@ -968,11 +968,6 @@ static int blkvsc_probe(struct device *device) ...@@ -968,11 +968,6 @@ static int blkvsc_probe(struct device *device)
static int ide1_registered; static int ide1_registered;
if (!storvsc_drv_obj->base.dev_add) {
ret = -1;
goto Cleanup;
}
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment