diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2018-02-08 20:35:12 +0100 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2018-02-08 20:35:12 +0100 |
commit | e987dcd94853d0355e36d44e766bfabba62c0df5 (patch) | |
tree | 4369adc1ad1bf951048416d9078374480bbffcf6 | |
parent | 2fd11378c8a350e124183dd833470c0a904375fd (diff) | |
download | 0xFFFF-e987dcd94853d0355e36d44e766bfabba62c0df5.tar.bz2 |
disk: Remove remaining ENOMEDIUM
-rw-r--r-- | src/disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -410,7 +410,7 @@ int disk_init(struct usb_device_info * dev) { else fd = disk_open_dev(maj1, min1, 1, 1); - if ( fd < 0 && errno != ENOMEDIUM ) + if ( fd < 0 ) return -1; dev->data = fd; |