From 698baf9baa0e3f6db6e41be452b3fd5f9b5532c3 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 4 Dec 2013 14:29:24 -0600 Subject: [PATCH] LPC31 EHCI: Fix errors in DEBUGASSERT statements --- arch/arm/src/lpc31xx/lpc31_ehci.c | 4 ++-- arch/arm/src/sama5/sam_nand.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/src/lpc31xx/lpc31_ehci.c b/arch/arm/src/lpc31xx/lpc31_ehci.c index 0e8b2a078c..f19dd2fa8a 100755 --- a/arch/arm/src/lpc31xx/lpc31_ehci.c +++ b/arch/arm/src/lpc31xx/lpc31_ehci.c @@ -3432,7 +3432,7 @@ static int lpc31_enumerate(FAR struct usbhost_connection_s *conn, int rhpndx) * repeat." */ - DEBUGASSERT(rhport->ep0.speed = EHCI_FULL_SPEED); + DEBUGASSERT(rhport->ep0.speed == EHCI_FULL_SPEED); #if 0 /* The LPC31xx does not support a companion host controller */ regval |= EHCI_PORTSC_OWNER; @@ -3449,7 +3449,7 @@ static int lpc31_enumerate(FAR struct usbhost_connection_s *conn, int rhpndx) else { - DEBUGASSERT(rhport->ep0.speed = EHCI_LOW_SPEED); + DEBUGASSERT(rhport->ep0.speed == EHCI_LOW_SPEED); DEBUGASSERT((regval & USBDEV_PRTSC1_PSPD_MASK) == USBDEV_PRTSC1_PSPD_LS) } diff --git a/arch/arm/src/sama5/sam_nand.c b/arch/arm/src/sama5/sam_nand.c index 5435c6c127..b2bf7f391b 100644 --- a/arch/arm/src/sama5/sam_nand.c +++ b/arch/arm/src/sama5/sam_nand.c @@ -2052,7 +2052,7 @@ static int nand_readpage_noecc(struct sam_nandcs_s *priv, off_t block, } } - /* Read the spare are is so requested */ + /* Read the spare area if so requested */ if (spare) {