scsi: ncr53c8xx: div reaches -1
PATCH 5/7 scsi: ncr53c8xx: div reaches -1
From: Roel Kluin <[email protected]>
With while(--div >= 0) { ... } div reaches -1.
Signed-off-by Roel Kluin <[email protected]>
Cc Matthew Wilcox <[email protected]>
Cc James Bottomley <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/scsi/ncr53c8xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/ncr53c8xx.c renamed from drivers/scsi/ncr53c8xx.c~scsi-ncr53c8xx-div-reaches-1 +1 -1
@@ -5444,7 +5444,7 @@ static void ncr_getsync(struct ncb *np,** input speed faster than the period. */ kpc = per * clk; -while (--div >=0 ) +while (--div >0 )if (kpc >= (div_10M[div] <<2 ))break ;/*
_