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:
parent
5811daec0c
commit
5927bf0ac1
|
@ -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->ep_desc = ep_desc;
|
||||||
ep->handler = handler;
|
ep->handler = handler;
|
||||||
|
ep->buffer = RT_NULL;
|
||||||
/* allocate buffer for endpoint */
|
|
||||||
ep->buffer = (rt_uint8_t*)rt_malloc(ep_desc->wMaxPacketSize);
|
|
||||||
|
|
||||||
return ep;
|
return ep;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue