projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4870bc
)
rtc: t reaches -1, tested 0
author
Roel Kluin
<
[email protected]
>
Wed, 11 Feb 2009 21:04:34 +0000
(13:04 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 11 Feb 2009 22:25:36 +0000
(14:25 -0800)
With a postfix decrement t will reach -1 rather than 0, so neither the
warning nor the `goto error_out' will occur.
Signed-off-by: Roel Kluin <
[email protected]
>
Acked-by: Manuel Lauss <
[email protected]
>
Acked-by: Alessandro Zummo <
[email protected]
>
Cc: David Brownell <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/rtc/rtc-au1xxx.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-au1xxx.c
b/drivers/rtc/rtc-au1xxx.c
index 8906a688e6a6fb2fec33f8d31de205f6b83bed2e..979ed0406ce9141557bb4eaba23daca9b1fb1f32 100644
(file)
--- a/
drivers/rtc/rtc-au1xxx.c
+++ b/
drivers/rtc/rtc-au1xxx.c
@@
-81,7
+81,7
@@
static int __devinit au1xtoy_rtc_probe(struct platform_device *pdev)
if (au_readl(SYS_TOYTRIM) != 32767) {
/* wait until hardware gives access to TRIM register */
t = 0x00100000;
- while ((au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_T0S) &&
t--
)
+ while ((au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_T0S) &&
--t
)
msleep(1);
if (!t) {