From: H Hartley Sweeten Date: Thu, 16 Apr 2009 23:30:18 +0000 (-0400) Subject: kernel/softirq.c: fix sparse warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=79d381c9f2354b594dcab9b04dfcc0debf7294fe;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git kernel/softirq.c: fix sparse warning Fix sparse warning in kernel/softirq.c. warning: do-while statement is not a compound statement Signed-off-by: H Hartley Sweeten LKML-Reference: Signed-off-by: Ingo Molnar --- diff --git a/kernel/softirq.c b/kernel/softirq.c index 2fecefacdc5b..b525dd348511 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -472,9 +472,9 @@ void tasklet_kill(struct tasklet_struct *t) printk("Attempt to kill tasklet from interrupt\n"); while (test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) { - do + do { yield(); - while (test_bit(TASKLET_STATE_SCHED, &t->state)); + } while (test_bit(TASKLET_STATE_SCHED, &t->state)); } tasklet_unlock_wait(t); clear_bit(TASKLET_STATE_SCHED, &t->state);