Skip to content

Commit d6963f2

Browse files
Colin Ian Kinggregkh
authored andcommitted
usb: host: u132-hcd: remove redundant continue statements
There are continue statements at the end of loops that have no effect and are redundant. Remove them. Signed-off-by: Colin Ian King <[email protected]> Addresses-Coverity: ("Continue has no effect") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e566215 commit d6963f2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/usb/host/u132-hcd.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2392,8 +2392,7 @@ static int dequeue_from_overflow_chain(struct u132 *u132,
23922392
urb->error_count = 0;
23932393
usb_hcd_giveback_urb(hcd, urb, 0);
23942394
return 0;
2395-
} else
2396-
continue;
2395+
}
23972396
}
23982397
dev_err(&u132->platform_dev->dev, "urb=%p not found in endp[%d]=%p ring"
23992398
"[%d] %c%c usb_endp=%d usb_addr=%d size=%d next=%04X last=%04X"
@@ -2448,8 +2447,7 @@ static int u132_endp_urb_dequeue(struct u132 *u132, struct u132_endp *endp,
24482447
urb_slot = &endp->urb_list[ENDP_QUEUE_MASK &
24492448
queue_scan];
24502449
break;
2451-
} else
2452-
continue;
2450+
}
24532451
}
24542452
while (++queue_list < ENDP_QUEUE_SIZE && --queue_size > 0) {
24552453
*urb_slot = endp->urb_list[ENDP_QUEUE_MASK &

0 commit comments

Comments
 (0)