Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2879336ybl; Thu, 19 Dec 2019 23:36:18 -0800 (PST) X-Google-Smtp-Source: APXvYqwxynG6bGXhz5Ft6RRpqh7Om4ANRNRfdExhP1W1MV6CLWIQVmyf+Ri3CQSjwbRZCYzqX4lU X-Received: by 2002:a9d:748d:: with SMTP id t13mr13063581otk.181.1576827378436; Thu, 19 Dec 2019 23:36:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576827378; cv=none; d=google.com; s=arc-20160816; b=Q1Stkga1fciW6vIpZFHwN3LL+OW5eTnHCYhzEAOrm6ZYeIbOaDUwHl72b8DnNZBVnZ a7pNcO6GY4qH7aXbuedeuWKdt56eV5QzHXFU40x6XRSCh2TbpfKARdSwEKFOfHj6rN4t 8FNQV1gr46wAnkIku/+Sf3/Ss20DAZi4p2uz+0Jsyp7YH4S50CA3Fxrn5QexKwzQDSaT z2snPjfcbntCYwz9zje1yDWO1Lw5WSedeoPbZana7WGfS2qTsAFPoZOBrQwz+FH1eIxm mcaNwxbdtjN0JXxuB/iVF/wfRg5tt+owrVHpCLn7D5jfAbrfns+S45Tj6U2ual6ZGAzB zfYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=FYW9lvks09OpGYY7Aw0rWju5R2UbBQAijCGxSMHjGLU=; b=LTBjItSU0HjwAyxw26sSfdgZf7nUM0bi2R/L8TP3MpaUHhyiPBBDVXnOXF+wkvzShJ IWDP0YIthXsWgv0ZWWYzcW+u88gOpiQAtBWbMmqpqnjmobCJ3EjRB8uo5IIKZT5n36uw XHN3xa+3ut7hcjde/1bwrTznA3vZcV/OFDBzTGEWX/Fme0r7R9eXzLQfzbNGx6Fuch0S UoJHuhllP/b3rzVBpGBcArNKJnqiHjN5amLTZLScVhYQmy8234WOLdDFrasDmaQvybqa wWUbqwwLDXVEjXO3MpKBrK1K4VDITcNfXXVguAbvBCLIv8HcQpzKy1AjP/fHBiQFzn7I a/ow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2si5882515otn.319.2019.12.19.23.36.05; Thu, 19 Dec 2019 23:36:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727191AbfLTHfX (ORCPT + 99 others); Fri, 20 Dec 2019 02:35:23 -0500 Received: from smtp25.cstnet.cn ([159.226.251.25]:33806 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725941AbfLTHfV (ORCPT ); Fri, 20 Dec 2019 02:35:21 -0500 X-Greylist: delayed 792 seconds by postgrey-1.27 at vger.kernel.org; Fri, 20 Dec 2019 02:33:15 EST Received: from localhost.localdomain (unknown [159.226.5.100]) by APP-05 (Coremail) with SMTP id zQCowACXAaENdvxdzOzbAw--.612S3; Fri, 20 Dec 2019 15:19:42 +0800 (CST) From: Xu Wang To: gregkh@linuxfoundation.org Cc: pawell@cadence.com, balbi@kernel.org, peter.chen@nxp.com, rogerq@ti.com, colin.king@canonical.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: cdns3: gadget: Remove unneeded variable ret Date: Fri, 20 Dec 2019 07:19:38 +0000 Message-Id: <1576826378-4387-1-git-send-email-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.7.4 X-CM-TRANSID: zQCowACXA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-CM-SenderInfo: pyxotu46lvutnvoduhdfq/1tbiBgMKA10Teec3MgAAsZ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unneeded variable ret used to store return value,just return 0. Signed-off-by: Xu Wang --- drivers/usb/cdns3/gadget.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/cdns3/gadget.c b/drivers/usb/cdns3/gadget.c index 4c1e755..73b75a3 100644 --- a/drivers/usb/cdns3/gadget.c +++ b/drivers/usb/cdns3/gadget.c @@ -2389,7 +2389,6 @@ static int cdns3_gadget_udc_stop(struct usb_gadget *gadget) struct cdns3_endpoint *priv_ep; u32 bEndpointAddress; struct usb_ep *ep; - int ret = 0; int val; priv_dev->gadget_driver = NULL; @@ -2413,7 +2412,7 @@ static int cdns3_gadget_udc_stop(struct usb_gadget *gadget) writel(0, &priv_dev->regs->usb_ien); writel(USB_CONF_DEVDS, &priv_dev->regs->usb_conf); - return ret; + return 0; } static const struct usb_gadget_ops cdns3_gadget_ops = { -- 2.7.4