summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2011-12-14 00:30:16 +0000
committerRafaël Carré <rafael.carre@gmail.com>2011-12-14 00:30:16 +0000
commit3b00460701f35edd99b8401c4edb2ddbcc8e1a11 (patch)
tree4f95bb31555c30c9bc70860622d93ae17db992ed /firmware/target
parent9c19e875fcf0056057d79dcb18dbd4dc4f2649fe (diff)
usb-s3c6400: fix more index / endpoint number confusion
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31237 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/usb-s3c6400x.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/target/arm/usb-s3c6400x.c b/firmware/target/arm/usb-s3c6400x.c
index 16cabb6ccf..b1252b8645 100644
--- a/firmware/target/arm/usb-s3c6400x.c
+++ b/firmware/target/arm/usb-s3c6400x.c
@@ -192,12 +192,12 @@ static void handle_ep_int(int out)
{
if (!out)
{
- if (endpoints[i].busy)
+ if (endpoints[ep].busy)
{
- endpoints[i].busy = false;
- endpoints[i].rc = 1;
- endpoints[i].done = true;
- semaphore_release(&endpoints[i].complete);
+ endpoints[ep].busy = false;
+ endpoints[ep].rc = 1;
+ endpoints[ep].done = true;
+ semaphore_release(&endpoints[ep].complete);
}
}
else