set endpoint buffer to RT_NULL

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2480 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
sc943313837@gmail.com 2012-12-14 03:08:05 +00:00
parent 5811daec0c
commit 5927bf0ac1
1 changed files with 1 additions and 3 deletions

View File

@ -813,9 +813,7 @@ uep_t rt_usbd_endpoint_create(uep_desc_t ep_desc, udep_handler_t handler)
}
ep->ep_desc = ep_desc;
ep->handler = handler;
/* allocate buffer for endpoint */
ep->buffer = (rt_uint8_t*)rt_malloc(ep_desc->wMaxPacketSize);
ep->buffer = RT_NULL;
return ep;
}