diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-06-10 21:56:57 +0200 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-06-15 17:09:30 +0200 |
commit | 36c7b3029784323d46d80b3262a4c1ab664eb0a3 (patch) | |
tree | 2a5fafa7533af7d58005ebbbea750bd533ef72d7 /drivers | |
parent | [SCSI] compat: don't perform unneeded copy in sg_io code (diff) | |
download | linux-36c7b3029784323d46d80b3262a4c1ab664eb0a3.tar.xz linux-36c7b3029784323d46d80b3262a4c1ab664eb0a3.zip |
[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')
-rw-r--r-- | drivers/scsi/ncr53c8xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ncr53c8xx.c b/drivers/scsi/ncr53c8xx.c index 3b7240e40819..e3c482aa87b5 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; /* |