summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;