Commit 79d381c9 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Ingo Molnar

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
LKML-Reference: <BD79186B4FD85F4B8E60E381CAEE1909015F9033@mi8nycmail19.Mi8.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent ef631b0c
...@@ -472,9 +472,9 @@ void tasklet_kill(struct tasklet_struct *t) ...@@ -472,9 +472,9 @@ void tasklet_kill(struct tasklet_struct *t)
printk("Attempt to kill tasklet from interrupt\n"); printk("Attempt to kill tasklet from interrupt\n");
while (test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) { while (test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) {
do do {
yield(); yield();
while (test_bit(TASKLET_STATE_SCHED, &t->state)); } while (test_bit(TASKLET_STATE_SCHED, &t->state));
} }
tasklet_unlock_wait(t); tasklet_unlock_wait(t);
clear_bit(TASKLET_STATE_SCHED, &t->state); clear_bit(TASKLET_STATE_SCHED, &t->state);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment