Commit 39b41b23 authored by Roel Kluin's avatar Roel Kluin Committed by Greg Kroah-Hartman

Staging: agnx: i reaches -1, tested 0

Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6bf67672
...@@ -669,7 +669,7 @@ static inline void calibra_delay(struct agnx_priv *priv) ...@@ -669,7 +669,7 @@ static inline void calibra_delay(struct agnx_priv *priv)
unsigned int i = 100; unsigned int i = 100;
wmb(); wmb();
while (i--) { while (--i) {
reg = (ioread32(ctl + AGNX_ACI_STATUS)); reg = (ioread32(ctl + AGNX_ACI_STATUS));
if (reg == 0x4000) if (reg == 0x4000)
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment