提交 1583aeb5 编写于 作者: N navin patidar 提交者: Greg Kroah-Hartman

staging: usbip: stub_main: correctly handle return value

ret == 0 means success, anything else is failure.
Signed-off-by: Nnavin patidar <navinp@cdac.in>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 14ab3daa
......@@ -255,14 +255,14 @@ static int __init usbip_host_init(void)
}
ret = usb_register(&stub_driver);
if (ret < 0) {
if (ret) {
pr_err("usb_register failed %d\n", ret);
goto err_usb_register;
}
ret = driver_create_file(&stub_driver.drvwrap.driver,
&driver_attr_match_busid);
if (ret < 0) {
if (ret) {
pr_err("driver_create_file failed\n");
goto err_create_file;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册