Commit f5facad6 authored by Tony Lindgren's avatar Tony Lindgren

musb_hdrc: Search and replace wBestDiff with best_diff

Search and replace wBestDiff with best_diff
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 096c649c
...@@ -1660,7 +1660,7 @@ static int musb_schedule( ...@@ -1660,7 +1660,7 @@ static int musb_schedule(
int is_in) int is_in)
{ {
int idle; int idle;
int wBestDiff; int best_diff;
int nBestEnd, nEnd; int nBestEnd, nEnd;
struct musb_hw_ep *hw_ep = NULL; struct musb_hw_ep *hw_ep = NULL;
struct list_head *head = NULL; struct list_head *head = NULL;
...@@ -1703,7 +1703,7 @@ static int musb_schedule( ...@@ -1703,7 +1703,7 @@ static int musb_schedule(
* that simplistic approach makes TT scheduling a lot simpler; * that simplistic approach makes TT scheduling a lot simpler;
* there is none, and thus none of its complexity... * there is none, and thus none of its complexity...
*/ */
wBestDiff = 4096; best_diff = 4096;
nBestEnd = -1; nBestEnd = -1;
for (nEnd = 1; nEnd < musb->nr_endpoints; nEnd++) { for (nEnd = 1; nEnd < musb->nr_endpoints; nEnd++) {
...@@ -1720,8 +1720,8 @@ static int musb_schedule( ...@@ -1720,8 +1720,8 @@ static int musb_schedule(
else else
diff = hw_ep->max_packet_sz_tx - qh->maxpacket; diff = hw_ep->max_packet_sz_tx - qh->maxpacket;
if (diff > 0 && wBestDiff > diff) { if (diff > 0 && best_diff > diff) {
wBestDiff = diff; best_diff = diff;
nBestEnd = nEnd; nBestEnd = nEnd;
} }
} }
......
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