Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934320AbbHDOBH (ORCPT ); Tue, 4 Aug 2015 10:01:07 -0400 Received: from mail-db3on0115.outbound.protection.outlook.com ([157.55.234.115]:3555 "EHLO emea01-db3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751521AbbHDOBE convert rfc822-to-8bit (ORCPT ); Tue, 4 Aug 2015 10:01:04 -0400 From: "Karajgaonkar, Saurabh (S.)" To: "srinivas.kandagatla@gmail.com" , "maxime.coquelin@st.com" , "patrice.chotard@st.com" , "stern@rowland.harvard.edu" , "gregkh@linuxfoundation.org" , "mathias.nyman@intel.com" , "balbi@ti.com" , "johan@kernel.org" , "sergei.shtylyov@cogentembedded.com" , "Julia.Lawall@lip6.fr" , "khilman@linaro.org" , "rafael.j.wysocki@intel.com" , "pmladek@suse.cz" , "wsa@the-dreams.de" CC: "linux-arm-kernel@lists.infradead.org" , "kernel@stlinux.com" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH v2 0/9] usb: Simplify return statements Thread-Topic: [PATCH v2 0/9] usb: Simplify return statements Thread-Index: AQHQzr3+SeMFpi/WfEmV3hop934bjg== Date: Tue, 4 Aug 2015 14:01:01 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=skarajga@visteon.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [74.112.167.117] x-microsoft-exchange-diagnostics: 1;DBXPR06MB384;5:JXkGj3zuHlzQqiOPxSPHqIsDrtOZqcdOznsjpXEEU6FjuRBTXJviIPCD6UG++dnx64nX5TwQl5ZMB+BFfe3xMevK/nZrvASrOT7KE198MYzFb3WOJLJJEffQ9pi+yTx5SZeegj5EEn9mAyFzRPuAOA==;24:KTaHiJ3Zw+8MOt0CNDcbwH0ILTs2JR+FwDZEsYus8OS6yeSf/BUPUq7mTUTyAhhyUW7fwrthofig9sRWnA603totZxQGfh0jkYCDRLHGYDU=;20:I2HJpUsWDBEOsCwL0CYNX+dQ70VZJy8b9V92fRlVw5IKYNCX4d66yJxGCNrI861ABJ/BmScC4PtClpyhG1yKPA== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DBXPR06MB384; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:DBXPR06MB384;BCL:0;PCL:0;RULEID:;SRVR:DBXPR06MB384; x-forefront-prvs: 0658BAF71F x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(979002)(6009001)(189002)(199003)(106116001)(102836002)(2656002)(19580405001)(66066001)(105586002)(5001860100001)(5001830100001)(54356999)(5001770100001)(2900100001)(19580395003)(106356001)(4001540100001)(81156007)(87936001)(86362001)(97736004)(2171001)(68736005)(46102003)(77096005)(5002640100001)(50986999)(101416001)(64706001)(189998001)(2201001)(33646002)(40100003)(122556002)(2501003)(92566002)(229853001)(36756003)(77156002)(62966003)(5001960100002)(921003)(1121003)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1102;SCL:1;SRVR:DBXPR06MB384;H:DBXPR06MB382.eurprd06.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <583964AC7C44F247888FE80B5B6802B7@eurprd06.prod.outlook.com> Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: visteon.com X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Aug 2015 14:01:01.1159 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7a147aaf-01ec-498c-80a1-e34a8c63c548 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBXPR06MB384 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1682 Lines: 40 From: Saurabh Karajgaonkar This patch series is created using simple_return.cocci coccinelle script. It replaces the redundant instances where variable is first assigned return value from a function call and then used in return statement, by direct function call in the return statement. Changes for v2: - corrected indentation issues [Patch 06/09, 08/09, 09/09] - Patch 04/09 Acked by Patrice Chotard Saurabh Karajgaonkar (9): usb: phy: phy-mxs-usb: Simplify return statement usb: phy: phy-keystone: Simplify return statement usb: musb: musb_dsps: Simplify return statement usb: host: ehci-st: Simplify return statement usb: host: oxu210hp-hcd: Simplify return statement usb: host: u132-hcd: Simplify return statement usb: host: xhci: Simplify return statement usb: serial: mxuport: Simplify return statement usb: misc: ftdi-elan: Simplify return statement drivers/usb/host/ehci-st.c | 7 +------ drivers/usb/host/oxu210hp-hcd.c | 7 +------ drivers/usb/host/u132-hcd.c | 35 +++++++++-------------------------- drivers/usb/host/xhci.c | 6 +----- drivers/usb/misc/ftdi-elan.c | 12 ++---------- drivers/usb/musb/musb_dsps.c | 6 +----- drivers/usb/phy/phy-keystone.c | 6 +----- drivers/usb/phy/phy-mxs-usb.c | 6 +----- drivers/usb/serial/mxuport.c | 10 +++------- 9 files changed, 20 insertions(+), 75 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/