diff options
| author | hathach <[email protected]> | 2014-03-14 00:06:43 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-03-14 00:06:43 +0700 |
| commit | 97cce2fa58fef84b58808f1861767a4c05dea8e7 (patch) | |
| tree | fc0db25b495d727a52d101624ea391e95565e451 /tinyusb/class/msc_host.c | |
| parent | 2502be94f7a35801ad6ff4570e5b1c949d024c75 (diff) | |
clean up compiler warning transfer of control bypasses initialization
Diffstat (limited to 'tinyusb/class/msc_host.c')
| -rw-r--r-- | tinyusb/class/msc_host.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tinyusb/class/msc_host.c b/tinyusb/class/msc_host.c index e81bed258..c21bc4ca6 100644 --- a/tinyusb/class/msc_host.c +++ b/tinyusb/class/msc_host.c @@ -306,7 +306,9 @@ tusb_error_t msch_open_subtask(uint8_t dev_addr, tusb_descriptor_interface_t con }
//------------- Open Data Pipe -------------//
- tusb_descriptor_endpoint_t const *p_endpoint = (tusb_descriptor_endpoint_t const *) descriptor_next( (uint8_t const*) p_interface_desc );
+ tusb_descriptor_endpoint_t const *p_endpoint;
+ p_endpoint = (tusb_descriptor_endpoint_t const *) descriptor_next( (uint8_t const*) p_interface_desc );
+
for(uint32_t i=0; i<2; i++)
{
SUBTASK_ASSERT(TUSB_DESC_TYPE_ENDPOINT == p_endpoint->bDescriptorType);
|
