summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ncr53c8xx.c
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-06-10 12:56:57 -0700
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-06-15 10:09:30 -0500
commit36c7b3029784323d46d80b3262a4c1ab664eb0a3 (patch)
tree2a5fafa7533af7d58005ebbbea750bd533ef72d7 /drivers/scsi/ncr53c8xx.c
parentdf59c0ad05182329688e514e5a9c3836fa208ea3 (diff)
[SCSI] ncr53c8xx: div reaches -1
With while(--div >= 0) { ... } div reaches -1. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/ncr53c8xx.c')
-rw-r--r--drivers/scsi/ncr53c8xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ncr53c8xx.c b/drivers/scsi/ncr53c8xx.c
index 3b7240e4081..e3c482aa87b 100644
--- a/drivers/scsi/ncr53c8xx.c
+++ b/drivers/scsi/ncr53c8xx.c
@@ -5444,7 +5444,7 @@ static void ncr_getsync(struct ncb *np, u_char sfac, u_char *fakp, u_char *scntl
** input speed faster than the period.
*/
kpc = per * clk;
- while (--div >= 0)
+ while (--div > 0)
if (kpc >= (div_10M[div] << 2)) break;
/*