diff options
| author | [email protected] <[email protected]> | 2012-12-14 03:08:05 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-12-14 03:08:05 +0000 |
| commit | 5927bf0ac16df159910058ceffc798d07cbdc973 (patch) | |
| tree | 1329e0045352898f4bbfccb2f9b10e344de0e77b /components/drivers/usb | |
| parent | 5811daec0ccef2df15e8b1184d1f87ec8aeaffdc (diff) | |
set endpoint buffer to RT_NULL
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2480 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/drivers/usb')
| -rw-r--r-- | components/drivers/usb/usbdevice/core/core.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/components/drivers/usb/usbdevice/core/core.c b/components/drivers/usb/usbdevice/core/core.c index 312b186c6f..6c9409512c 100644 --- a/components/drivers/usb/usbdevice/core/core.c +++ b/components/drivers/usb/usbdevice/core/core.c @@ -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;
}
|
