Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1736865 > unrolled thread

[PATCH 34/64] drivers: net: eql: use setup_timer() helper.

Started byAllen Pais <allen.lkml@gmail.com>
First post2017-09-21 19:10 +0200
Last post2017-09-21 19:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 34/64] drivers: net: eql: use setup_timer() helper. Allen Pais <allen.lkml@gmail.com> - 2017-09-21 19:10 +0200

#1736865 — [PATCH 34/64] drivers: net: eql: use setup_timer() helper.

FromAllen Pais <allen.lkml@gmail.com>
Date2017-09-21 19:10 +0200
Subject[PATCH 34/64] drivers: net: eql: use setup_timer() helper.
Message-ID<usd98-3OI-13@gated-at.bofh.it>
    Use setup_timer function instead of initializing timer with the
    function and data fields.

Signed-off-by: Allen Pais <allen.lkml@gmail.com>
---
 drivers/net/eql.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/net/eql.c b/drivers/net/eql.c
index fe13bfe..fccce4b 100644
--- a/drivers/net/eql.c
+++ b/drivers/net/eql.c
@@ -178,10 +178,8 @@ static void __init eql_setup(struct net_device *dev)
 {
 	equalizer_t *eql = netdev_priv(dev);
 
-	init_timer(&eql->timer);
-	eql->timer.data     	= (unsigned long) eql;
+	setup_timer(&eql->timer, eql_timer, (unsigned long)eql);
 	eql->timer.expires  	= jiffies + EQL_DEFAULT_RESCHED_IVAL;
-	eql->timer.function 	= eql_timer;
 
 	spin_lock_init(&eql->queue.lock);
 	INIT_LIST_HEAD(&eql->queue.all_slaves);
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web