summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-12-21 01:45:08 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-12-21 01:45:08 +0000
commita774c58708c599daef71e7a30cf83bb2a342a51c (patch)
treee54c4d222a1e4f23340fea1cf3b9bb92b9f2257e /nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c
parent7e1a5210b304ebf1617f1d49e33bff469c7a9ace (diff)
downloadpx4-nuttx-a774c58708c599daef71e7a30cf83bb2a342a51c.tar.gz
px4-nuttx-a774c58708c599daef71e7a30cf83bb2a342a51c.tar.bz2
px4-nuttx-a774c58708c599daef71e7a30cf83bb2a342a51c.zip
backward comparison
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3205 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c')
-rwxr-xr-xnuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c b/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c
index 02ed7b4ca..c8be22fad 100755
--- a/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c
+++ b/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c
@@ -1369,8 +1369,8 @@ static int lpc17_transfer(FAR struct usbhost_driver_s *drvr,
/* Allocate an IO buffer if the user buffer does not lie in AHB SRAM */
#ifdef CONFIG_UBHOST_AHBIOBUFFERS
- if ((uintptr_t)buffer >= LPC17_SRAM_BANK0 &&
- (uintptr_t)buffer < (LPC17_SRAM_BANK0 + LPC17_SRAM_BANK0 + LPC17_SRAM_BANK0))
+ if ((uintptr_t)buffer < LPC17_SRAM_BANK0 ||
+ (uintptr_t)buffer >= (LPC17_SRAM_BANK0 + LPC17_SRAM_BANK0 + LPC17_SRAM_BANK0))
{
/* Allocate an IO buffer in AHB SRAM */