usb-s3c6400: fix endpoint array traversal in interrupt handler

fix r31219

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31233 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2011-12-13 22:13:15 +00:00
parent a60463e636
commit 1096cc08c0

View file

@ -166,8 +166,9 @@ static void usb_reset(void)
static void handle_ep_int(int out)
{
static const uint8_t eps[2][3] = { /* IN */ {0, 1, 3}, /* OUT */ {0, 2, 4}};
for (int i = 0, ep = eps[!!out][i]; i < 3; ep = eps[!!out][i])
for (int i = 0; i < 3; i++)
{
int ep = eps[!!out][i];
uint32_t epints = DEPINT(ep, out);
if (!epints)
continue;