Messages in this thread | | | Date | Fri, 22 Jan 1999 13:31:46 +0000 | From | Edmund GRIMLEY EVANS <> | Subject | ide-probe.c logic wrong? |
| |
All right, all right, I apologise. Here's a version without goto:
switch (type) { case ide_floppy: /* Early cdrom models used zero */ if (strstr(id->model, "CD-ROM")) type = ide_cdrom; else { if (!strstr(id->model, "oppy") && !strstr(id->model,"poyp") && !strstr(id->model, "ZIP")) { printk("cdrom or floppy?, assuming "); if (drive->media == ide_cdrom) type = ide_cdrom; } if (type == ide_floppy) { printk ("FLOPPY"); break; } } case ide_cdrom:
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |