mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
libdisk: avoid unreachable code to silence Sun cc warning (Russell Davies)
This commit is contained in:
parent
cf69e5d420
commit
25745eb3b1
1 changed files with 14 additions and 16 deletions
|
@ -143,8 +143,8 @@ drivergeometry(Disk *disk)
|
||||||
disk->h = 255;
|
disk->h = 255;
|
||||||
disk->c /= 17;
|
disk->c /= 17;
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
|
||||||
for(m = 2; m*disk->h < 256; m *= 2) {
|
for(m = 2; m*disk->h < 256; m *= 2) {
|
||||||
if(disk->c/m < 1024) {
|
if(disk->c/m < 1024) {
|
||||||
disk->c /= m;
|
disk->c /= m;
|
||||||
|
@ -159,8 +159,6 @@ drivergeometry(Disk *disk)
|
||||||
disk->c = disk->secs / (disk->h * disk->s);
|
disk->c = disk->secs / (disk->h * disk->s);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return -1; /* not reached */
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* There's no ATA geometry and no partitions.
|
* There's no ATA geometry and no partitions.
|
||||||
|
|
Loading…
Reference in a new issue