Skip to contentSkip to conversation

SCSI: ncr53c8xx: div reaches -1

PATCH New Roel Kluin 1 participant 1 message Feb 11, 2009 SCSI

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 SCSI: ncr53c8xx: div reaches -1

With while(--div >= 0) { ... } div reaches -1.

---

drivers/scsi/ncr53c8xx.c +1 -1
index 3b7240e..e3c482a 100644
@@ -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;
 
 	/*