Browse Source

fix usb mis-cleanup after r27162 (#9581)

SVN-Revision: 27243
Florian Fainelli 14 years ago
parent
commit
6cb3195b40
1 changed files with 2 additions and 1 deletions
  1. 2 1
      target/linux/adm5120/files/drivers/usb/host/adm5120-q.c

+ 2 - 1
target/linux/adm5120/files/drivers/usb/host/adm5120-q.c

@@ -718,10 +718,11 @@ rescan_all:
 		 * frame counter wraps and EDs with partially retired TDs
 		 */
 		if (likely(HC_IS_RUNNING(admhcd_to_hcd(ahcd)->state))) {
-			if (tick_before(tick, ed->tick))
+			if (tick_before(tick, ed->tick)) {
 skip_ed:
 				last = &ed->ed_rm_next;
 				continue;
+			}
 #if 0
 			if (!list_empty(&ed->td_list)) {
 				struct td	*td;