]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
musb_hdrc: Search and replace nBestEnd with best_end
authorTony Lindgren <tony@atomide.com>
Thu, 16 Aug 2007 08:19:01 +0000 (01:19 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 16 Aug 2007 10:35:06 +0000 (03:35 -0700)
Search and replace nBestEnd with best_end

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/musb/musb_host.c

index 556d55b4d07c372345f21afba74c1d7d28d151c3..7a517748e6459a8822dd989f4aaecd77913c22a8 100644 (file)
@@ -1661,7 +1661,7 @@ static int musb_schedule(
 {
        int                     idle;
        int                     best_diff;
-       int                     nBestEnd, nEnd;
+       int                     best_end, nEnd;
        struct musb_hw_ep       *hw_ep = NULL;
        struct list_head        *head = NULL;
 
@@ -1704,7 +1704,7 @@ static int musb_schedule(
         * there is none, and thus none of its complexity...
         */
        best_diff = 4096;
-       nBestEnd = -1;
+       best_end = -1;
 
        for (nEnd = 1; nEnd < musb->nr_endpoints; nEnd++) {
                int     diff;
@@ -1722,16 +1722,16 @@ static int musb_schedule(
 
                if (diff > 0 && best_diff > diff) {
                        best_diff = diff;
-                       nBestEnd = nEnd;
+                       best_end = nEnd;
                }
        }
-       if (nBestEnd < 0)
+       if (best_end < 0)
                return -ENOSPC;
 
        idle = 1;
-       hw_ep = musb->endpoints + nBestEnd;
-       musb->periodic[nBestEnd] = qh;
-       DBG(4, "qh %p periodic slot %d\n", qh, nBestEnd);
+       hw_ep = musb->endpoints + best_end;
+       musb->periodic[best_end] = qh;
+       DBG(4, "qh %p periodic slot %d\n", qh, best_end);
 success:
        qh->hw_ep = hw_ep;
        qh->hep->hcpriv = qh;