From 976e178ac492a98034dd14e40f2dbf5c7708710c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 9 Feb 2014 13:45:18 -0600 Subject: [PATCH] Fix a compile error that crept into the LPC17xx USB host driver --- arch/arm/src/lpc17xx/lpc17_usbhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/lpc17xx/lpc17_usbhost.c b/arch/arm/src/lpc17xx/lpc17_usbhost.c index 5dbe115f2b3..6b97e974963 100644 --- a/arch/arm/src/lpc17xx/lpc17_usbhost.c +++ b/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; } }