Commit c09f3a22 authored by Alan Stern's avatar Alan Stern Committed by Greg Kroah-Hartman

[PATCH] USB: Remove name obfuscation in UHCI

On Mon, 23 Feb 2004, Stephen Hemminger wrote:
> Bulk and interrupt urb's share common irq processing, why does the
> code try to obfuscate it?

Quite right; this is needless complexity.  (But note you left in a couple
of lines that should have been deleted.)
parent a32564f2
...@@ -1270,12 +1270,6 @@ static inline int uhci_submit_interrupt(struct uhci_hcd *uhci, struct urb *urb, ...@@ -1270,12 +1270,6 @@ static inline int uhci_submit_interrupt(struct uhci_hcd *uhci, struct urb *urb,
return uhci_submit_common(uhci, urb, eurb, uhci->skelqh[__interval_to_skel(urb->interval)]); return uhci_submit_common(uhci, urb, eurb, uhci->skelqh[__interval_to_skel(urb->interval)]);
} }
/*
* Bulk and interrupt use common result
*/
#define uhci_result_bulk uhci_result_common
#define uhci_result_interrupt uhci_result_common
/* /*
* Isochronous transfers * Isochronous transfers
*/ */
...@@ -1537,11 +1531,9 @@ static void uhci_transfer_result(struct uhci_hcd *uhci, struct urb *urb) ...@@ -1537,11 +1531,9 @@ static void uhci_transfer_result(struct uhci_hcd *uhci, struct urb *urb)
case PIPE_CONTROL: case PIPE_CONTROL:
ret = uhci_result_control(uhci, urb); ret = uhci_result_control(uhci, urb);
break; break;
case PIPE_INTERRUPT:
ret = uhci_result_interrupt(uhci, urb);
break;
case PIPE_BULK: case PIPE_BULK:
ret = uhci_result_bulk(uhci, urb); case PIPE_INTERRUPT:
ret = uhci_result_common(uhci, urb);
break; break;
case PIPE_ISOCHRONOUS: case PIPE_ISOCHRONOUS:
ret = uhci_result_isochronous(uhci, urb); ret = uhci_result_isochronous(uhci, urb);
......
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