summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-06-12 00:29:07 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-06-12 00:29:07 +0000
commit56078692ce87c87cf4878d3015039478a53895cc (patch)
tree66ca836e25e137cd1cbe0b6738fda54308fc2ca9 /nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c
parentca66e136a5f50cb988febe14e4eb433a93eb10cf (diff)
downloadpx4-nuttx-56078692ce87c87cf4878d3015039478a53895cc.tar.gz
px4-nuttx-56078692ce87c87cf4878d3015039478a53895cc.tar.bz2
px4-nuttx-56078692ce87c87cf4878d3015039478a53895cc.zip
Same as last check-in, just implemented more sanely
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1880 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c')
-rw-r--r--nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c b/nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c
index a7d1f4266..f4bd1bd13 100644
--- a/nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c
+++ b/nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c
@@ -1078,7 +1078,7 @@ static int lpc214x_wrrequest(struct lpc214x_ep_s *privep)
/* Send the largest number of bytes that we can in this packet */
- buf = (ubyte*)privreq->req.buf + privreq->req.xfrd;
+ buf = privreq->req.buf + privreq->req.xfrd;
lpc214x_epwrite(privep->epphy, buf, nbytes);
/* Update for the next time through the loop */
@@ -1139,7 +1139,7 @@ static int lpc214x_rdrequest(struct lpc214x_ep_s *privep)
/* Receive the next packet */
- buf = (ubyte*)privreq->req.buf + privreq->req.xfrd;
+ buf = privreq->req.buf + privreq->req.xfrd;
nbytesread = lpc214x_epread(privep->epphy, buf, privep->ep.maxpacket);
if (nbytesread < 0)
{