projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df59c0a
)
[SCSI] ncr53c8xx: div reaches -1
author
Roel Kluin
<roel.kluin@gmail.com>
Wed, 10 Jun 2009 19:56:57 +0000
(12:56 -0700)
committer
James Bottomley
<James.Bottomley@HansenPartnership.com>
Mon, 15 Jun 2009 15:09:30 +0000
(10:09 -0500)
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>
drivers/scsi/ncr53c8xx.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/ncr53c8xx.c
b/drivers/scsi/ncr53c8xx.c
index
3b7240e
..
e3c482a
100644
(file)
--- 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;
/*