提交 4cb80cda 编写于 作者: P Peter Korsgaard 提交者: Greg Kroah-Hartman

USB: gadget/multi: cdc_do_config: remove redundant check

cdc_do_config() had a double ret check after fsg_add().
Signed-off-by: NPeter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 d8359334
...@@ -211,8 +211,6 @@ static int __init cdc_do_config(struct usb_configuration *c) ...@@ -211,8 +211,6 @@ static int __init cdc_do_config(struct usb_configuration *c)
ret = fsg_add(c->cdev, c, fsg_common); ret = fsg_add(c->cdev, c, fsg_common);
if (ret < 0) if (ret < 0)
return ret; return ret;
if (ret < 0)
return ret;
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册