Input: HIL - do not call tasklet_disable right before tasklet_kill
authorXiaotian Feng <xtfeng@gmail.com>
Sun, 25 Nov 2012 07:08:54 +0000 (23:08 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 25 Nov 2012 08:10:13 +0000 (00:10 -0800)
We do not need to call tasklet_disable() before calling tasklet_kill() if
taskelt does not reschedult itself.

Signed-off-by: Xiaotian Feng <dannyfeng@tencent.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/hil_mlc.c

index 0280167f09ac39bf5ba33ce67543098b3c2b292a..65605e4ef3cf6f7b085816ffeb8b2c11af0f4fc4 100644 (file)
@@ -1009,8 +1009,6 @@ static int __init hil_mlc_init(void)
 static void __exit hil_mlc_exit(void)
 {
        del_timer_sync(&hil_mlcs_kicker);
-
-       tasklet_disable(&hil_mlcs_tasklet);
        tasklet_kill(&hil_mlcs_tasklet);
 }