forked from len0rd/rockbox
move buflib_free invalid handle check to the function
allow buflib_free to check for invalid or already freed handles within the function -- remove all the invalid handle guards thru core_free Change-Id: Ibdcbc82760fc93b674c42283fca420d94907df8e
This commit is contained in:
parent
9d3d925295
commit
12ef045fdf
18 changed files with 32 additions and 62 deletions
|
|
@ -481,8 +481,7 @@ void usb_storage_init_connection(void)
|
|||
|
||||
void usb_storage_disconnect(void)
|
||||
{
|
||||
if (usb_handle > 0)
|
||||
usb_handle = core_free(usb_handle);
|
||||
usb_handle = core_free(usb_handle);
|
||||
}
|
||||
|
||||
/* called by usb_core_transfer_complete() */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue