Skip to content

Commit

Permalink
kernel/softirq.c: fix sparse warning
Browse files Browse the repository at this point in the history
Fix sparse warning in kernel/softirq.c.

  warning: do-while statement is not a compound statement

Signed-off-by: H Hartley Sweeten <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
H Hartley Sweeten authored and Ingo Molnar committed Apr 16, 2009
1 parent ef631b0 commit 79d381c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/softirq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 79d381c

Please sign in to comment.