Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932389AbbHDJXI (ORCPT ); Tue, 4 Aug 2015 05:23:08 -0400 Received: from mail-am1on0122.outbound.protection.outlook.com ([157.56.112.122]:36625 "EHLO emea01-am1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754185AbbHDJXF convert rfc822-to-8bit (ORCPT ); Tue, 4 Aug 2015 05:23:05 -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 0/9] usb: Simplify return statements Thread-Topic: [PATCH 0/9] usb: Simplify return statements Thread-Index: AQHQzpT+fVnw5QCcO0yYZhRsGO6yBQ== Date: Tue, 4 Aug 2015 09:07:30 +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;DBXPR06MB382;5:UEwGU7xvk39U1xxKZRy0emHZ6mAM6xDve3cRjnXC2KDnVXEvxO4u0WCZ2bHMObuC/zyN4Ognd1pJXHKwMSlJzqebmpusyrE7lIeLHORM/r6H9IlBwkqwbvbffIP09o6kKfAU6Y10n4U5ajufAMz++Q==;24:IKXpo7B7eLFmo73AURsglaEBNWO2pApUY6i0oS8LvlX7MmGyrAhauorI4jWekgob4yqubDezvI9D0oTfmsx+4j6B5Mf/iFNY4+GB/g9Owmk=;20:WHG6dsKyQICXjPSuBx+wjWgIqGwhk8lfdcq2C/mjvngzECPrnxapc9e89ubITPzKeihSvXExJ4OTdVNj6ZQk4A== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DBXPR06MB382; 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:DBXPR06MB382;BCL:0;PCL:0;RULEID:;SRVR:DBXPR06MB382; x-forefront-prvs: 0658BAF71F x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(199003)(189002)(5001960100002)(189998001)(81156007)(36756003)(106356001)(5002640100001)(64706001)(2501003)(66066001)(97736004)(5001770100001)(106116001)(105586002)(5001860100001)(77096005)(2201001)(33646002)(19580405001)(2900100001)(68736005)(5001920100001)(86362001)(102836002)(229853001)(5001830100001)(46102003)(40100003)(19580395003)(92566002)(54356999)(50986999)(2656002)(77156002)(87936001)(122556002)(62966003)(101416001)(2171001)(4001540100001)(921003)(1121003);DIR:OUT;SFP:1102;SCL:1;SRVR:DBXPR06MB382;H:DBXPR06MB382.eurprd06.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: visteon.com X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Aug 2015 09:07:30.9420 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7a147aaf-01ec-498c-80a1-e34a8c63c548 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBXPR06MB382 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1528 Lines: 36 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. 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 | 27 +++++---------------------- drivers/usb/host/xhci.c | 6 +----- drivers/usb/misc/ftdi-elan.c | 10 ++-------- 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 | 6 +----- 9 files changed, 14 insertions(+), 67 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/