Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6161091ybl; Mon, 23 Dec 2019 00:55:14 -0800 (PST) X-Google-Smtp-Source: APXvYqxRPEFYKFxoEv0one4SfrrW9iGmk1OTdlyneCTyem0ZExh6BuMXtPd5pggtWHvtJRbDHzTM X-Received: by 2002:a05:6830:685:: with SMTP id q5mr5555704otr.208.1577091314895; Mon, 23 Dec 2019 00:55:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577091314; cv=none; d=google.com; s=arc-20160816; b=N4ddPcf4n2Bup+mskNv/V9XVvM4EeMxz7D+s8YhY2CpMzGuh5jC7dRABmXzuuNIs12 p+GZjVliWh0yDTce0g3NzkBbIYA7LIbuf0MP2gibdrEb8S2lvUeIzRgGssrJDV2v53Vo 3u++bwnhNvsmSbt3zqit0OXRfSbYhWJQ2EuActcu4iRaQmpmRW9XqfeqT2PIU4GlO2Ht xWjVMRVIe6l/jn9WnDomkcQxKRDuOj/ttPj753tFL+Ex2DozumO5EjryYXQqiiKsv4zZ 7B2RFpoqdHuxzVibvtHFb2BwIX14qeJcJVzSfXM18NhPrcpFGWFZlBuWqB8Xv+1uRgjJ Y3CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=lg1Djuoe6ahXyyc1XjirhC5Cey95aVxgpU1ZuAQBxNk=; b=aKpQOGx1jtsLOdw5gu6TgunRUJPHxclTYAWdDb1DFbOx2+XX5zuSaYpx5FmtxbqgMD hEKWHXAs/aRPh8v7ZkcNhIP8viJDCSqyMoTWEPvwHO3VvhPVIoimH+2Gtq3O6kSz9RoY LvNalu0fs/+qBDtBzSgMbc68v0FiWvoFoGoXLNIMrfmDuY+np4bgEvFNl0oTlBIPxtiw JE33izav9c5R5rrnmmXjFrs2GuTgO3cJNRy4PPuZxZ4ClfHAvjYe0NUJgg6b5YlTNODf ktjcCL/0MyMF00z43ZDBi1zuE+UqKqAEe4AsDq00B6YIIvQEvR32Rdh8BNRZiVP08Ne8 7zFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=v6XM4lBK; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n85si8942178oig.191.2019.12.23.00.55.02; Mon, 23 Dec 2019 00:55:14 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=v6XM4lBK; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726610AbfLWIyL (ORCPT + 99 others); Mon, 23 Dec 2019 03:54:11 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:56460 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725927AbfLWIyL (ORCPT ); Mon, 23 Dec 2019 03:54:11 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id xBN8rvNJ069194; Mon, 23 Dec 2019 02:53:57 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1577091237; bh=lg1Djuoe6ahXyyc1XjirhC5Cey95aVxgpU1ZuAQBxNk=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=v6XM4lBKI9XbJI8Ml7N+1oD0gDvrM/RztLXjhzoNMkkmeENIWvy+3FRWeJvcOmx8o KMTUPoIabntTawNC60cxMlG7zZtNbCIoq5gDCbzo4j+h9+HX0Mo55ZkOIYXMjWTFsy nfufdhOxRHZf5Ie3xsxTkomH25JdbVUWUKJ/hHIg= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xBN8rvd6087337 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 23 Dec 2019 02:53:57 -0600 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Mon, 23 Dec 2019 02:53:56 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Mon, 23 Dec 2019 02:53:57 -0600 Received: from [192.168.2.14] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id xBN8rsZT045002; Mon, 23 Dec 2019 02:53:55 -0600 Subject: Re: [PATCH] usb: cdns3: gadget: Remove unneeded variable ret To: Xu Wang , CC: , , , , , References: <1576826378-4387-1-git-send-email-vulab@iscas.ac.cn> From: Roger Quadros Message-ID: <890bc22f-9f03-f4c3-9fdc-7afe4c7321ff@ti.com> Date: Mon, 23 Dec 2019 10:53:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <1576826378-4387-1-git-send-email-vulab@iscas.ac.cn> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/12/2019 09:19, Xu Wang wrote: > Remove unneeded variable ret used to store return value,just return 0. > > Signed-off-by: Xu Wang Acked-by: Roger Quadros > --- > 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 = { > -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki