summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2018-02-08 20:35:12 +0100
committerPali Rohár <pali.rohar@gmail.com>2018-02-08 20:35:12 +0100
commite987dcd94853d0355e36d44e766bfabba62c0df5 (patch)
tree4369adc1ad1bf951048416d9078374480bbffcf6
parent2fd11378c8a350e124183dd833470c0a904375fd (diff)
download0xFFFF-e987dcd94853d0355e36d44e766bfabba62c0df5.tar.bz2
disk: Remove remaining ENOMEDIUM
-rw-r--r--src/disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/disk.c b/src/disk.c
index 87e2c39..c048a56 100644
--- a/src/disk.c
+++ b/src/disk.c
@@ -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;