lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150518144539.GA10481@visteon-gnana>
Date:	Mon, 18 May 2015 14:44:15 +0000
From:	"DHANAPAL, GNANACHANDRAN (G.)" <gdhanapa@...teon.com>
To:	"gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>
CC:	"lambert.quentin@...il.com" <lambert.quentin@...il.com>,
	"mdcasey@...bloom.com" <mdcasey@...bloom.com>,
	"julia.lawall@...6.fr" <julia.lawall@...6.fr>,
	"kolbeinnkarls@...il.com" <kolbeinnkarls@...il.com>,
	"himangi774@...il.com" <himangi774@...il.com>,
	"joe@...ches.com" <joe@...ches.com>,
	"devel@...verdev.osuosl.org" <devel@...verdev.osuosl.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"Babu, Viswanathan (V.)" <vbabu3@...teon.com>
Subject: [PATCH] Staging: rtl8192e: Timer setup using macro rather assignment

setup_timer is used for timer parameter setup rather than direct
assignment

Signed-off-by: Gnanachandran Dhanapal <gdhanapa@...teon.com>
---
 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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ