Staging: agnx: i reaches -1, tested 0
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
6bf676723a
commit
39b41b23e2
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue