Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42482
b: refs/heads/master
c: b4b8bed
h: refs/heads/master
v: v3
  • Loading branch information
Ed Lin authored and James Bottomley committed Dec 5, 2006
1 parent 6c1edf0 commit 8a730c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 00769ec40074b753c9b218c2ccaba2bfbfffe056
refs/heads/master: b4b8bed12345bc03dfcef80cbbe78582429b063c
6 changes: 3 additions & 3 deletions trunk/drivers/scsi/stex.c
Original file line number Diff line number Diff line change
Expand Up @@ -1100,18 +1100,18 @@ static int stex_reset(struct scsi_cmnd *cmd)
static int stex_biosparam(struct scsi_device *sdev,
struct block_device *bdev, sector_t capacity, int geom[])
{
int heads = 255, sectors = 63, cylinders;
int heads = 255, sectors = 63;

if (capacity < 0x200000) {
heads = 64;
sectors = 32;
}

cylinders = sector_div(capacity, heads * sectors);
sector_div(capacity, heads * sectors);

geom[0] = heads;
geom[1] = sectors;
geom[2] = cylinders;
geom[2] = capacity;

return 0;
}
Expand Down

0 comments on commit 8a730c5

Please sign in to comment.