Commit 8b4959d6 authored by Felipe Balbi's avatar Felipe Balbi Committed by Greg Kroah-Hartman

USB: musb: musb_host: fix sparse warning

Fix the following sparse warning:

drivers/usb/musb/musb_host.c:1642:9: warning: symbol 'status' shadows an earlier one
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 1b6c3b0f
...@@ -1642,18 +1642,18 @@ void musb_host_rx(struct musb *musb, u8 epnum) ...@@ -1642,18 +1642,18 @@ void musb_host_rx(struct musb *musb, u8 epnum)
c = musb->dma_controller; c = musb->dma_controller;
if (usb_pipeisoc(pipe)) { if (usb_pipeisoc(pipe)) {
int status = 0; int d_status = 0;
struct usb_iso_packet_descriptor *d; struct usb_iso_packet_descriptor *d;
d = urb->iso_frame_desc + qh->iso_idx; d = urb->iso_frame_desc + qh->iso_idx;
if (iso_err) { if (iso_err) {
status = -EILSEQ; d_status = -EILSEQ;
urb->error_count++; urb->error_count++;
} }
if (rx_count > d->length) { if (rx_count > d->length) {
if (status == 0) { if (d_status == 0) {
status = -EOVERFLOW; d_status = -EOVERFLOW;
urb->error_count++; urb->error_count++;
} }
DBG(2, "** OVERFLOW %d into %d\n",\ DBG(2, "** OVERFLOW %d into %d\n",\
...@@ -1662,7 +1662,7 @@ void musb_host_rx(struct musb *musb, u8 epnum) ...@@ -1662,7 +1662,7 @@ void musb_host_rx(struct musb *musb, u8 epnum)
length = d->length; length = d->length;
} else } else
length = rx_count; length = rx_count;
d->status = status; d->status = d_status;
buf = urb->transfer_dma + d->offset; buf = urb->transfer_dma + d->offset;
} else { } else {
length = rx_count; length = rx_count;
......
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