Browse Source

Staging: agnx: i reaches -1, tested 0

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Roel Kluin 16 years ago
parent
commit
39b41b23e2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/staging/agnx/rf.c

+ 1 - 1
drivers/staging/agnx/rf.c

@@ -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;