summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-02-09 13:45:18 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-02-09 13:45:18 -0600
commitc62d9e07abd5345ef8f62d2e7ae6f803025ac5c4 (patch)
tree0ed6dfec4a27de22ab4e35948d44102e659db98c
parent646cfa00a6c003b9be5a4ba2d4a52ae60b8b4336 (diff)
downloadpx4-nuttx-c62d9e07abd5345ef8f62d2e7ae6f803025ac5c4.tar.gz
px4-nuttx-c62d9e07abd5345ef8f62d2e7ae6f803025ac5c4.tar.bz2
px4-nuttx-c62d9e07abd5345ef8f62d2e7ae6f803025ac5c4.zip
Fix a compile error that crept into the LPC17xx USB host driver
-rw-r--r--nuttx/ChangeLog3
-rw-r--r--nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog
index ab57cb70f..b4bd51a59 100644
--- a/nuttx/ChangeLog
+++ b/nuttx/ChangeLog
@@ -6545,4 +6545,7 @@
* Documentation/NuttXCCodingStandard.html: Add a coding standards
document. Very boring stuff (2014-2-6).
* Several changes to restore the native Windows build (2014-2-7).
+ * arch/arm/src/lpc17xx/lpc17_usbhost.c: Fix an compilation error
+ that crept intot he LPC17xx USB host driver. What happened here?
+ (2014-2-8).
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c b/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c
index 5dbe115f2..6b97e9749 100644
--- a/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c
+++ b/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c
@@ -1304,7 +1304,7 @@ static int lpc17_ctrltd(struct lpc17_usbhost_s *priv, uint32_t dirpid,
else
{
uvdbg("Bad TD completion status: %d\n", EDCTRL->tdstatus);
- ret = ed->tdstatus == TD_CC_STALL ? -EPERM : -EIO;
+ ret = EDCTRL->tdstatus == TD_CC_STALL ? -EPERM : -EIO;
}
}