Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36c7b302 authored by Roel Kluin's avatar Roel Kluin Committed by James Bottomley
Browse files

[SCSI] ncr53c8xx: div reaches -1



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

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent df59c0ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;

	/*