Skip to content

Commit

Permalink
Staging: hv: Get rid of an unnecessary check in blkvsc_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Apr 25, 2011
1 parent e01c33b commit a2b9d24
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/staging/hv/blkvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a2b9d24

Please sign in to comment.