mirror of https://gitee.com/openkylin/linux.git
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:
parent
f38cf9ccd6
commit
6de925b189
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue