All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: rtl8192e: Timer setup using macro rather assignment
@ 2015-05-18 14:44 DHANAPAL, GNANACHANDRAN (G.)
  2015-05-18 16:05 ` Sudip Mukherjee
  2015-05-18 17:49 ` Julia Lawall
  0 siblings, 2 replies; 6+ messages in thread
From: DHANAPAL, GNANACHANDRAN (G.) @ 2015-05-18 14:44 UTC (permalink / raw)
  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.)

setup_timer is used for timer parameter setup rather than direct
assignment

Signed-off-by: Gnanachandran Dhanapal <gdhanapa@visteon.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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-05-31  0:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-18 14:44 [PATCH] Staging: rtl8192e: Timer setup using macro rather assignment DHANAPAL, GNANACHANDRAN (G.)
2015-05-18 16:05 ` Sudip Mukherjee
2015-05-18 16:26   ` Joe Perches
2015-05-18 16:42     ` Sudip Mukherjee
2015-05-31  0:26       ` gregkh
2015-05-18 17:49 ` Julia Lawall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.