diff options
Diffstat (limited to 'firmware/usbstack/usb_storage.c')
-rw-r--r-- | firmware/usbstack/usb_storage.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c index c5fa47fa51..a178f06f87 100644 --- a/firmware/usbstack/usb_storage.c +++ b/firmware/usbstack/usb_storage.c | |||
@@ -364,24 +364,6 @@ static bool check_disk_present(IF_MD_NONVOID(int volume)) | |||
364 | #endif | 364 | #endif |
365 | } | 365 | } |
366 | 366 | ||
367 | void usb_storage_try_release_storage(void) | ||
368 | { | ||
369 | /* Check if there is a connected drive left. If not, | ||
370 | release excusive access */ | ||
371 | bool canrelease=true; | ||
372 | int i; | ||
373 | for(i=0;i<storage_num_drives();i++) { | ||
374 | if(!ejected[i] && locked[i]) { | ||
375 | canrelease=false; | ||
376 | break; | ||
377 | } | ||
378 | } | ||
379 | if(canrelease) { | ||
380 | logf("scsi release ata"); | ||
381 | usb_release_exclusive_storage(); | ||
382 | } | ||
383 | } | ||
384 | |||
385 | #ifdef HAVE_HOTSWAP | 367 | #ifdef HAVE_HOTSWAP |
386 | void usb_storage_notify_hotswap(int volume,bool inserted) | 368 | void usb_storage_notify_hotswap(int volume,bool inserted) |
387 | { | 369 | { |