]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] janitor: char/fdc-io: replace direct assignment with set_current_state()
authorMaximilian Attems <janitor@sternwelten.at>
Tue, 19 Oct 2004 01:19:59 +0000 (18:19 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 19 Oct 2004 01:19:59 +0000 (18:19 -0700)
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/ftape/lowlevel/fdc-io.c

index 3b78eda30b1951bf6b8653513b1a9e197e597473..a3b0f510b1e8f2e45a81e1060438b2b022fbba37 100644 (file)
@@ -389,7 +389,7 @@ int fdc_interrupt_wait(unsigned int time)
        recalc_sigpending();
        spin_unlock_irq(&current->sighand->siglock);
 
-       current->state = TASK_INTERRUPTIBLE;
+       set_current_state(TASK_INTERRUPTIBLE);
        add_wait_queue(&ftape_wait_intr, &wait);
        while (!ft_interrupt_seen && (current->state == TASK_INTERRUPTIBLE)) {
                timeout = schedule_timeout(timeout);