Staging: hv: vmbus: Cleanup some error codes in vmbus_drv.c

Cleanup some error codes in vmbus_drv.c

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
K. Y. Srinivasan 2011-06-06 15:50:07 -07:00 committed by Greg Kroah-Hartman
parent f38cf9ccd6
commit 6de925b189

View File

@ -329,7 +329,7 @@ static int vmbus_probe(struct device *child_device)
} else {
pr_err("probe not set for driver %s\n",
dev_name(child_device));
ret = -1;
ret = -ENODEV;
}
return ret;
}
@ -352,7 +352,7 @@ static int vmbus_remove(struct device *child_device)
} else {
pr_err("remove not set for driver %s\n",
dev_name(child_device));
ret = -1;
ret = -ENODEV;
}
}