mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] aoe: use setup_timer
@ 2017-03-24 14:15 Geliang Tang
  2017-03-24 14:15 ` [PATCH] block: floppy: " Geliang Tang
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Geliang Tang @ 2017-03-24 14:15 UTC (permalink / raw)
  To: Ed L. Cashin; +Cc: Geliang Tang, linux-kernel

Use setup_timer() instead of init_timer() to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
 drivers/block/aoe/aoemain.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/block/aoe/aoemain.c b/drivers/block/aoe/aoemain.c
index 4b987c2..20865d4 100644
--- a/drivers/block/aoe/aoemain.c
+++ b/drivers/block/aoe/aoemain.c
@@ -28,10 +28,8 @@ discover_timer(ulong vp)
 
 	switch (vp) {
 	case TINIT:
-		init_timer(&t);
+		setup_timer(&t, discover_timer, TRUN);
 		spin_lock_init(&lock);
-		t.data = TRUN;
-		t.function = discover_timer;
 		die = 0;
 	case TRUN:
 		spin_lock_irqsave(&lock, flags);
-- 
2.9.3

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

end of thread, other threads:[~2017-03-31  8:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-24 14:15 [PATCH] aoe: use setup_timer Geliang Tang
2017-03-24 14:15 ` [PATCH] block: floppy: " Geliang Tang
2017-03-24 14:23   ` Jens Axboe
2017-03-24 14:15 ` [PATCH] drbd: " Geliang Tang
2017-03-24 14:15 ` [PATCH] ipmi_ssif: " Geliang Tang
2017-03-25  2:59   ` Corey Minyard
2017-03-24 14:15 ` [PATCH] mg_disk: " Geliang Tang
2017-03-24 14:15 ` [PATCH] x86/pci-calgary: " Geliang Tang
2017-03-31  8:24   ` [tip:x86/cleanups] x86/pci-calgary: Use setup_timer() instead of open coding it tip-bot for Geliang Tang
2017-03-25 19:32 ` [PATCH] aoe: use setup_timer Ed Cashin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome