diff options
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/stex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c index 185c270bb043..91d484c0dd93 100644 --- a/drivers/scsi/stex.c +++ b/drivers/scsi/stex.c | |||
@@ -1100,18 +1100,18 @@ static int stex_reset(struct scsi_cmnd *cmd) | |||
1100 | static int stex_biosparam(struct scsi_device *sdev, | 1100 | static int stex_biosparam(struct scsi_device *sdev, |
1101 | struct block_device *bdev, sector_t capacity, int geom[]) | 1101 | struct block_device *bdev, sector_t capacity, int geom[]) |
1102 | { | 1102 | { |
1103 | int heads = 255, sectors = 63, cylinders; | 1103 | int heads = 255, sectors = 63; |
1104 | 1104 | ||
1105 | if (capacity < 0x200000) { | 1105 | if (capacity < 0x200000) { |
1106 | heads = 64; | 1106 | heads = 64; |
1107 | sectors = 32; | 1107 | sectors = 32; |
1108 | } | 1108 | } |
1109 | 1109 | ||
1110 | cylinders = sector_div(capacity, heads * sectors); | 1110 | sector_div(capacity, heads * sectors); |
1111 | 1111 | ||
1112 | geom[0] = heads; | 1112 | geom[0] = heads; |
1113 | geom[1] = sectors; | 1113 | geom[1] = sectors; |
1114 | geom[2] = cylinders; | 1114 | geom[2] = capacity; |
1115 | 1115 | ||
1116 | return 0; | 1116 | return 0; |
1117 | } | 1117 | } |