From 8a730c55ea4691af83043832afb21a3bd326ce94 Mon Sep 17 00:00:00 2001 From: Ed Lin Date: Mon, 4 Dec 2006 17:49:24 -0800 Subject: [PATCH] --- yaml --- r: 42482 b: refs/heads/master c: b4b8bed12345bc03dfcef80cbbe78582429b063c h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/scsi/stex.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 8a1463aceae6..1f8ec233eeb4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 00769ec40074b753c9b218c2ccaba2bfbfffe056 +refs/heads/master: b4b8bed12345bc03dfcef80cbbe78582429b063c diff --git a/trunk/drivers/scsi/stex.c b/trunk/drivers/scsi/stex.c index 185c270bb043..91d484c0dd93 100644 --- a/trunk/drivers/scsi/stex.c +++ b/trunk/drivers/scsi/stex.c @@ -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; }