Allow to scan ATA bus, ignoring non allocated device (to jump from hda to hdc even if there is no hdb)

This commit is contained in:
Laurent Vivier 2006-05-29 19:10:48 +00:00
parent 83a63cd81f
commit 0b6dcf91f1

View File

@ -77,7 +77,7 @@ static int emile_scanbus(device_name_t devices[EMILE_MAX_DISK])
sprintf(dev, "/dev/hd%c", 'a' + i);
fd = open(dev, O_RDONLY);
if (fd == -1)
break;
continue;
close(fd);
strncpy(devices[j++], dev, EMILE_MAX_DEVNAME);
}