backward comparison

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3205 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2010-12-21 01:45:08 +00:00
parent e8620ef2ca
commit 1771fc602a
1 changed files with 2 additions and 2 deletions

View File

@ -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 */