isdn: gigaset: Fix set-but-unused variable.
The variable 'offset' is set but unused in write_iso_tasklet(). Just kill it off. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0c78641d7f
commit
a713c3bbb5
|
@ -1157,7 +1157,6 @@ static void write_iso_tasklet(unsigned long data)
|
||||||
struct urb *urb;
|
struct urb *urb;
|
||||||
int status;
|
int status;
|
||||||
struct usb_iso_packet_descriptor *ifd;
|
struct usb_iso_packet_descriptor *ifd;
|
||||||
int offset;
|
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
int i;
|
int i;
|
||||||
struct sk_buff *skb;
|
struct sk_buff *skb;
|
||||||
|
@ -1225,7 +1224,6 @@ static void write_iso_tasklet(unsigned long data)
|
||||||
* successfully sent
|
* successfully sent
|
||||||
* - all following frames are not sent at all
|
* - all following frames are not sent at all
|
||||||
*/
|
*/
|
||||||
offset = done->limit; /* default (no error) */
|
|
||||||
for (i = 0; i < BAS_NUMFRAMES; i++) {
|
for (i = 0; i < BAS_NUMFRAMES; i++) {
|
||||||
ifd = &urb->iso_frame_desc[i];
|
ifd = &urb->iso_frame_desc[i];
|
||||||
if (ifd->status ||
|
if (ifd->status ||
|
||||||
|
@ -1235,9 +1233,6 @@ static void write_iso_tasklet(unsigned long data)
|
||||||
i, ifd->actual_length,
|
i, ifd->actual_length,
|
||||||
ifd->length,
|
ifd->length,
|
||||||
get_usb_statmsg(ifd->status));
|
get_usb_statmsg(ifd->status));
|
||||||
offset = (ifd->offset +
|
|
||||||
ifd->actual_length)
|
|
||||||
% BAS_OUTBUFSIZE;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user