Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756514AbbHDOBg (ORCPT ); Tue, 4 Aug 2015 10:01:36 -0400 Received: from mail-db3on0143.outbound.protection.outlook.com ([157.55.234.143]:1659 "EHLO emea01-db3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751943AbbHDOBe convert rfc822-to-8bit (ORCPT ); Tue, 4 Aug 2015 10:01:34 -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 1/9] usb: phy: phy-mxs-usb: Simplify return statement Thread-Topic: [PATCH v2 1/9] usb: phy: phy-mxs-usb: Simplify return statement Thread-Index: AQHQzr4Q83yE/RuJbU2IDKciHcarGA== Date: Tue, 4 Aug 2015 14:01:31 +0000 Message-ID: <0e24e9030dc43d6191c74039faf79de49e45c191.1438695318.git.skarajga@visteon.com> References: In-Reply-To: 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:7AIeqadQstyGh9qCiAkJdeMx2XQxOEzXXFR9IL3z82dSLFvLtAQF4Y5tnz9VhGbkoKyNe9s6J2qOmai6GL4/Iek5Frs3NmW9g6gq+sVXhpJWsieHbGy/CzuSIgwPouSyFv9VAiPd3uTzt5pS2oFfrw==;24:DI1fGPzen740hKOEIa0OOsT8wQUrRQnqZ0D+Z0f1H+m8POsYS6wHP2D3IWNXMFvADFawt1nydhIjzoUIwjlDQ0sKwCbqhwbMxxANSD+3qTo=;20:KheTWTx8Vc+jUDPlmxMhgCJ6z83+yM1VdlDDTW6XOlLpmprUyFVCrBY7YrdQ1QcWvwejDvS6vdy8ZLABKpBeHA== 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)(2501003)(122556002)(33646002)(40100003)(62966003)(77156002)(5001960100002)(92566002)(36756003)(229853001)(2950100001)(76176999)(230783001)(19580395003)(2900100001)(106356001)(4001540100001)(87936001)(81156007)(19580405001)(2656002)(66066001)(106116001)(102836002)(5001860100001)(54356999)(5001770100001)(118296001)(5001830100001)(105586002)(64706001)(50986999)(5002640100001)(101416001)(189998001)(2201001)(86362001)(77096005)(46102003)(97736004)(68736005)(2171001)(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: Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: visteon.com X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Aug 2015 14:01:31.6807 (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: 1000 Lines: 33 From: Saurabh Karajgaonkar Replace redundant variable use in return statement. Signed-off-by: Saurabh Karajgaonkar --- drivers/usb/phy/phy-mxs-usb.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb/phy/phy-mxs-usb.c index 3fcc048..4d863eb 100644 --- a/drivers/usb/phy/phy-mxs-usb.c +++ b/drivers/usb/phy/phy-mxs-usb.c @@ -506,11 +506,7 @@ static int mxs_phy_probe(struct platform_device *pdev) device_set_wakeup_capable(&pdev->dev, true); - ret = usb_add_phy_dev(&mxs_phy->phy); - if (ret) - return ret; - - return 0; + return usb_add_phy_dev(&mxs_phy->phy); } static int mxs_phy_remove(struct platform_device *pdev) -- 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/