mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 17:17:04 -04:00
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 <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:
committed by
Greg Kroah-Hartman
parent
e01c33b886
commit
a2b9d24eaf
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user