diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2015-06-06 09:51:51 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-08 08:45:39 +0200 |
commit | fb79c066bce8620fae04112b33c55f279b60d3e1 (patch) | |
tree | 1f68474fa2faef3091d58c834186cd609b5368f1 /drivers/net/wan/cosa.c | |
parent | net/mlx5_core: Fix static checker warnings around system guid query flow (diff) | |
download | linux-fb79c066bce8620fae04112b33c55f279b60d3e1.tar.xz linux-fb79c066bce8620fae04112b33c55f279b60d3e1.zip |
cosa: use msecs_to_jiffies for conversions
API compliance scanning with coccinelle flagged:
./drivers/net/wan/cosa.c:520:2-18: WARNING:
timeout (30) seems HZ dependent
Numeric constants passed to schedule_timeout() make the effective
timeout HZ dependent which makes little sense in a device probe.
Fixed up by converting the constant to jiffies with msecs_to_jiffies()
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/cosa.c')
-rw-r--r-- | drivers/net/wan/cosa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c index bcfa01add7cc..7193b7304fdd 100644 --- a/drivers/net/wan/cosa.c +++ b/drivers/net/wan/cosa.c @@ -517,7 +517,7 @@ static int cosa_probe(int base, int irq, int dma) */ set_current_state(TASK_INTERRUPTIBLE); cosa_putstatus(cosa, SR_TX_INT_ENA); - schedule_timeout(30); + schedule_timeout(msecs_to_jiffies(300)); irq = probe_irq_off(irqs); /* Disable all IRQs from the card */ cosa_putstatus(cosa, 0); |