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;
|
||||
|
||||
wmb();
|
||||
while (i--) {
|
||||
while (--i) {
|
||||
reg = (ioread32(ctl + AGNX_ACI_STATUS));
|
||||
if (reg == 0x4000)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user