Correct a crash when keyboard removed

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3266 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2011-01-20 01:09:06 +00:00
parent c38d1c1ec9
commit bc5634d2ad

View File

@ -1003,7 +1003,7 @@ static inline int lpc17_reminted(struct lpc17_usbhost_s *priv,
* entries, OUT EDs get the odd entries. * entries, OUT EDs get the odd entries.
*/ */
if ((ed->hw.ctrl && ED_CONTROL_D_MASK) == ED_CONTROL_D_IN) if ((ed->hw.ctrl & ED_CONTROL_D_MASK) == ED_CONTROL_D_IN)
{ {
offset = 0; offset = 0;
} }