From: Peter Korsgaard Date: Fri, 12 Mar 2010 11:33:15 +0000 (+0100) Subject: USB: gadget/multi: cdc_do_config: remove redundant check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4cb80cda51ff950614701fb30c9d4e583fe5a31f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git USB: gadget/multi: cdc_do_config: remove redundant check cdc_do_config() had a double ret check after fsg_add(). Signed-off-by: Peter Korsgaard Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/gadget/multi.c b/drivers/usb/gadget/multi.c index 76496f5d272c..a930d7fd7e7a 100644 --- a/drivers/usb/gadget/multi.c +++ b/drivers/usb/gadget/multi.c @@ -211,8 +211,6 @@ static int __init cdc_do_config(struct usb_configuration *c) ret = fsg_add(c->cdev, c, fsg_common); if (ret < 0) return ret; - if (ret < 0) - return ret; return 0; }