hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/usb/host/fhci-tds.c
....@@ -467,17 +467,15 @@
467467 /* Reset the Tx BD ring */
468468 void fhci_flush_bds(struct fhci_usb *usb)
469469 {
470
- u16 extra_data;
471470 u16 td_status;
472
- u32 buf;
473471 struct usb_td __iomem *td;
474472 struct endpoint *ep = usb->ep0;
475473
476474 td = ep->td_base;
477475 while (1) {
478476 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);
481479
482480 /* if the TD is not empty - we'll confirm it as Timeout */
483481 if (td_status & TD_R)
....@@ -524,7 +522,6 @@
524522 {
525523 u8 mode;
526524 u16 tb_ptr;
527
- u16 extra_data;
528525 u16 td_status;
529526 u32 buf_ptr;
530527 struct usb_td __iomem *td;
....@@ -538,7 +535,7 @@
538535 td = cpm_muram_addr(tb_ptr);
539536 td_status = in_be16(&td->status);
540537 buf_ptr = in_be32(&td->buf_ptr);
541
- extra_data = in_be16(&td->extra);
538
+ in_be16(&td->extra);
542539 do {
543540 if (td_status & TD_R) {
544541 out_be16(&td->status, (td_status & ~TD_R) | TD_TO);
....@@ -552,7 +549,7 @@
552549 td = next_bd(ep->td_base, td, td_status);
553550 td_status = in_be16(&td->status);
554551 buf_ptr = in_be32(&td->buf_ptr);
555
- extra_data = in_be16(&td->extra);
552
+ in_be16(&td->extra);
556553 } while ((td_status & TD_R) || buf_ptr);
557554
558555 fhci_td_transaction_confirm(usb);