From 8f983d6ff8a3f84d83e836794b768347dc77b027 Mon Sep 17 00:00:00 2001 From: Randy Dunlap Date: Mon, 6 Oct 2003 17:48:49 -0700 Subject: [PATCH] [COSA]: schedule_timeout() sets curr_state, from Alexey Dobriyan . --- drivers/net/wan/cosa.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c index eca67c6ee724..320fc4b8d4a2 100644 --- a/drivers/net/wan/cosa.c +++ b/drivers/net/wan/cosa.c @@ -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 -- 2.39.5