Commit 7d450e00 authored by Jeff Garzik's avatar Jeff Garzik

Merge branch 'upstream-fixes' of...

Merge branch 'upstream-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 into upstream-fixes
parents 95d161cb b312d799
...@@ -1547,7 +1547,7 @@ static void handle_irq_noise(struct bcm43xx_private *bcm) ...@@ -1547,7 +1547,7 @@ static void handle_irq_noise(struct bcm43xx_private *bcm)
goto generate_new; goto generate_new;
/* Get the noise samples. */ /* Get the noise samples. */
assert(bcm->noisecalc.nr_samples <= 8); assert(bcm->noisecalc.nr_samples < 8);
i = bcm->noisecalc.nr_samples; i = bcm->noisecalc.nr_samples;
noise[0] = limit_value(noise[0], 0, ARRAY_SIZE(radio->nrssi_lt) - 1); noise[0] = limit_value(noise[0], 0, ARRAY_SIZE(radio->nrssi_lt) - 1);
noise[1] = limit_value(noise[1], 0, ARRAY_SIZE(radio->nrssi_lt) - 1); noise[1] = limit_value(noise[1], 0, ARRAY_SIZE(radio->nrssi_lt) - 1);
......
...@@ -375,10 +375,8 @@ static void int_urb_complete(struct urb *urb, struct pt_regs *pt_regs) ...@@ -375,10 +375,8 @@ static void int_urb_complete(struct urb *urb, struct pt_regs *pt_regs)
case -ENODEV: case -ENODEV:
case -ENOENT: case -ENOENT:
case -ECONNRESET: case -ECONNRESET:
goto kfree;
case -EPIPE: case -EPIPE:
usb_clear_halt(urb->dev, EP_INT_IN); goto kfree;
/* FALL-THROUGH */
default: default:
goto resubmit; goto resubmit;
} }
...@@ -580,10 +578,8 @@ static void rx_urb_complete(struct urb *urb, struct pt_regs *pt_regs) ...@@ -580,10 +578,8 @@ static void rx_urb_complete(struct urb *urb, struct pt_regs *pt_regs)
case -ENODEV: case -ENODEV:
case -ENOENT: case -ENOENT:
case -ECONNRESET: case -ECONNRESET:
return;
case -EPIPE: case -EPIPE:
usb_clear_halt(urb->dev, EP_DATA_IN); return;
/* FALL-THROUGH */
default: default:
dev_dbg_f(urb_dev(urb), "urb %p error %d\n", urb, urb->status); dev_dbg_f(urb_dev(urb), "urb %p error %d\n", urb, urb->status);
goto resubmit; goto resubmit;
...@@ -749,11 +745,9 @@ static void tx_urb_complete(struct urb *urb, struct pt_regs *pt_regs) ...@@ -749,11 +745,9 @@ static void tx_urb_complete(struct urb *urb, struct pt_regs *pt_regs)
case -ENODEV: case -ENODEV:
case -ENOENT: case -ENOENT:
case -ECONNRESET: case -ECONNRESET:
case -EPIPE:
dev_dbg_f(urb_dev(urb), "urb %p error %d\n", urb, urb->status); dev_dbg_f(urb_dev(urb), "urb %p error %d\n", urb, urb->status);
break; break;
case -EPIPE:
usb_clear_halt(urb->dev, EP_DATA_OUT);
/* FALL-THROUGH */
default: default:
dev_dbg_f(urb_dev(urb), "urb %p error %d\n", urb, urb->status); dev_dbg_f(urb_dev(urb), "urb %p error %d\n", urb, urb->status);
goto resubmit; goto resubmit;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment