]> git.neil.brown.name Git - history.git/commitdiff
[COSA]: schedule_timeout() sets curr_state, from Alexey Dobriyan <adobriyan@mail...
authorRandy Dunlap <rddunlap@osdl.org>
Tue, 7 Oct 2003 00:48:49 +0000 (17:48 -0700)
committerDavid S. Miller <davem@nuts.ninka.net>
Tue, 7 Oct 2003 00:48:49 +0000 (17:48 -0700)
drivers/net/wan/cosa.c

index eca67c6ee7241b9e49e998b0321496e1d5d73280..320fc4b8d4a2cb0d885c6b80c472adab2f4de9d1 100644 (file)
@@ -519,7 +519,6 @@ static int cosa_probe(int base, int irq, int dma)
                current->state = TASK_INTERRUPTIBLE;
                cosa_putstatus(cosa, SR_TX_INT_ENA);
                schedule_timeout(30);
-               current->state = TASK_RUNNING;
                irq = probe_irq_off(irqs);
                /* Disable all IRQs from the card */
                cosa_putstatus(cosa, 0);
@@ -1532,7 +1531,6 @@ static int cosa_reset_and_read_id(struct cosa_data *cosa, char *idstring)
 #ifdef MODULE
        current->state = TASK_INTERRUPTIBLE;
        schedule_timeout(HZ/2);
-       current->state = TASK_RUNNING;
 #else
        udelay(5*100000);
 #endif