Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753186AbbEROoW (ORCPT ); Mon, 18 May 2015 10:44:22 -0400 Received: from mail-am1on0104.outbound.protection.outlook.com ([157.56.112.104]:53696 "EHLO emea01-am1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752387AbbEROoT convert rfc822-to-8bit (ORCPT ); Mon, 18 May 2015 10:44:19 -0400 From: "DHANAPAL, GNANACHANDRAN (G.)" To: "gregkh@linuxfoundation.org" CC: "lambert.quentin@gmail.com" , "mdcasey@chabloom.com" , "julia.lawall@lip6.fr" , "kolbeinnkarls@gmail.com" , "himangi774@gmail.com" , "joe@perches.com" , "devel@driverdev.osuosl.org" , "linux-kernel@vger.kernel.org" , "Babu, Viswanathan (V.)" Subject: [PATCH] Staging: rtl8192e: Timer setup using macro rather assignment Thread-Topic: [PATCH] Staging: rtl8192e: Timer setup using macro rather assignment Thread-Index: AQHQkXkcUYhurSRJ0EqGFcEvvAYDnQ== Date: Mon, 18 May 2015 14:44:15 +0000 Message-ID: <20150518144539.GA10481@visteon-gnana> Accept-Language: en-IN, ta-IN, ml-IN, te-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=gdhanapa@visteon.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [202.0.77.198] x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM3PR06MB449; 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:AM3PR06MB449;BCL:0;PCL:0;RULEID:;SRVR:AM3PR06MB449; x-forefront-prvs: 058043A388 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(189002)(199003)(2501003)(66066001)(64706001)(2860100001)(2900100001)(92566002)(87936001)(2656002)(5001960100002)(68736005)(110136002)(102836002)(5001860100001)(5001830100001)(97736004)(81156007)(4001540100001)(33716001)(107886002)(229853001)(2351001)(189998001)(40100003)(101416001)(77156002)(62966003)(106356001)(33656002)(106116001)(105586002)(50986999)(54356999)(86362001)(46102003)(122556002)(19580395003)(19580405001)(4001430100001);DIR:OUT;SFP:1102;SCL:1;SRVR:AM3PR06MB449;H:AM3PR06MB0856.eurprd06.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-ID: <4DC6BC41AEF66D408A1FC8525FF9C3EC@eurprd06.prod.outlook.com> Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: visteon.com X-MS-Exchange-CrossTenant-originalarrivaltime: 18 May 2015 14:44:15.6320 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7a147aaf-01ec-498c-80a1-e34a8c63c548 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR06MB449 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1046 Lines: 30 setup_timer is used for timer parameter setup rather than direct assignment Signed-off-by: Gnanachandran Dhanapal --- drivers/staging/rtl8192e/rtllib_module.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib_module.c b/drivers/staging/rtl8192e/rtllib_module.c index 32cc8df..7ad1541 100644 --- a/drivers/staging/rtl8192e/rtllib_module.c +++ b/drivers/staging/rtl8192e/rtllib_module.c @@ -59,9 +59,8 @@ EXPORT_SYMBOL(rt_global_debug_component); void _setup_timer(struct timer_list *ptimer, void *fun, unsigned long data) { - ptimer->function = fun; - ptimer->data = data; init_timer(ptimer); + setup_timer(ptimer, fun, data); } static inline int rtllib_networks_allocate(struct rtllib_device *ieee) -- 1.7.9.5 -- 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/