Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752613AbbFKKhf (ORCPT ); Thu, 11 Jun 2015 06:37:35 -0400 Received: from mail-db3on0121.outbound.protection.outlook.com ([157.55.234.121]:35776 "EHLO emea01-db3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751133AbbFKKh2 convert rfc822-to-8bit (ORCPT ); Thu, 11 Jun 2015 06:37:28 -0400 X-Greylist: delayed 2016 seconds by postgrey-1.27 at vger.kernel.org; Thu, 11 Jun 2015 06:37:28 EDT From: "Abdul, Hussain (H.)" To: "gregkh@linuxfoundation.org" , "benjamin.romer@unisys.com" , "david.kershner@unisys.com" , "sparmaintainer@unisys.com" CC: "devel@driverdev.osuosl.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH] staging: unisys: Remove unneeded variable Thread-Topic: [PATCH] staging: unisys: Remove unneeded variable Thread-Index: AQHQpC3pVdmRId8plUWn8R1LZqPS1A== Date: Thu, 11 Jun 2015 10:03:49 +0000 Message-ID: <1434016948-18287-1-git-send-email-habdul@visteon.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 1.9.1 authentication-results: linuxfoundation.org; dkim=none (message not signed) header.d=none; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [74.112.167.117] x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM3PR06MB1108;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM3PR06MB578; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(5005006)(520003)(3002001);SRVR:AM3PR06MB1108;BCL:0;PCL:0;RULEID:;SRVR:AM3PR06MB1108; x-forefront-prvs: 0604AFA86B x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(189998001)(33646002)(66066001)(5002640100001)(50226001)(86362001)(2501003)(106116001)(2900100001)(5001770100001)(229853001)(87936001)(62966003)(2656002)(46102003)(5001920100001)(5001960100002)(92566002)(102836002)(36756003)(2201001)(40100003)(50986999)(19580395003)(77156002)(122556002)(19580405001);DIR:OUT;SFP:1102;SCL:1;SRVR:AM3PR06MB1108;H:AM3PR06MB1108.eurprd06.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Jun 2015 10:03:49.3503 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7a147aaf-01ec-498c-80a1-e34a8c63c548 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR06MB1108 X-OriginatorOrg: visteon.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1090 Lines: 35 This patch remove unneeded variable used to store return value. Signed-off-by: Abdul Hussain --- drivers/staging/unisys/visorbus/visorbus_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus/visorbus_main.c index c7db681..bceec88 100644 --- a/drivers/staging/unisys/visorbus/visorbus_main.c +++ b/drivers/staging/unisys/visorbus/visorbus_main.c @@ -835,7 +835,6 @@ away: static int visordriver_remove_device(struct device *xdev) { - int rc = 0; struct visor_device *dev; struct visor_driver *drv; @@ -858,7 +857,7 @@ visordriver_remove_device(struct device *xdev) put_device(&dev->device); - return rc; + return 0; } /** A particular type of visor driver calls this function to register -- 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/