mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[SCSI] ncr53c8xx: div reaches -1
With while(--div >= 0) { ... } div reaches -1.
Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
df59c0ad05
commit
36c7b30297
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue