libdisk: avoid unreachable code to silence Sun cc warning (Russell Davies)

This commit is contained in:
Russ Cox 2008-06-04 20:59:28 -04:00
parent cf69e5d420
commit 25745eb3b1

View file

@ -143,8 +143,8 @@ drivergeometry(Disk *disk)
disk->h = 255;
disk->c /= 17;
return 0;
}
default:
for(m = 2; m*disk->h < 256; m *= 2) {
if(disk->c/m < 1024) {
disk->c /= m;
@ -159,8 +159,6 @@ drivergeometry(Disk *disk)
disk->c = disk->secs / (disk->h * disk->s);
return 0;
}
return -1; /* not reached */
}
/*
* There's no ATA geometry and no partitions.