.. | .. |
---|
467 | 467 | /* Reset the Tx BD ring */ |
---|
468 | 468 | void fhci_flush_bds(struct fhci_usb *usb) |
---|
469 | 469 | { |
---|
470 | | - u16 extra_data; |
---|
471 | 470 | u16 td_status; |
---|
472 | | - u32 buf; |
---|
473 | 471 | struct usb_td __iomem *td; |
---|
474 | 472 | struct endpoint *ep = usb->ep0; |
---|
475 | 473 | |
---|
476 | 474 | td = ep->td_base; |
---|
477 | 475 | while (1) { |
---|
478 | 476 | td_status = in_be16(&td->status); |
---|
479 | | - buf = in_be32(&td->buf_ptr); |
---|
480 | | - extra_data = in_be16(&td->extra); |
---|
| 477 | + in_be32(&td->buf_ptr); |
---|
| 478 | + in_be16(&td->extra); |
---|
481 | 479 | |
---|
482 | 480 | /* if the TD is not empty - we'll confirm it as Timeout */ |
---|
483 | 481 | if (td_status & TD_R) |
---|
.. | .. |
---|
524 | 522 | { |
---|
525 | 523 | u8 mode; |
---|
526 | 524 | u16 tb_ptr; |
---|
527 | | - u16 extra_data; |
---|
528 | 525 | u16 td_status; |
---|
529 | 526 | u32 buf_ptr; |
---|
530 | 527 | struct usb_td __iomem *td; |
---|
.. | .. |
---|
538 | 535 | td = cpm_muram_addr(tb_ptr); |
---|
539 | 536 | td_status = in_be16(&td->status); |
---|
540 | 537 | buf_ptr = in_be32(&td->buf_ptr); |
---|
541 | | - extra_data = in_be16(&td->extra); |
---|
| 538 | + in_be16(&td->extra); |
---|
542 | 539 | do { |
---|
543 | 540 | if (td_status & TD_R) { |
---|
544 | 541 | out_be16(&td->status, (td_status & ~TD_R) | TD_TO); |
---|
.. | .. |
---|
552 | 549 | td = next_bd(ep->td_base, td, td_status); |
---|
553 | 550 | td_status = in_be16(&td->status); |
---|
554 | 551 | buf_ptr = in_be32(&td->buf_ptr); |
---|
555 | | - extra_data = in_be16(&td->extra); |
---|
| 552 | + in_be16(&td->extra); |
---|
556 | 553 | } while ((td_status & TD_R) || buf_ptr); |
---|
557 | 554 | |
---|
558 | 555 | fhci_td_transaction_confirm(usb); |
---|