From: Roel Kluin Date: Sat, 31 Jan 2009 10:44:02 +0000 (+0100) Subject: Staging: agnx: i reaches -1, tested 0 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=39b41b23e27ca7d4425ad1f23189eef936394fdf;p=linux-beck.git Staging: agnx: i reaches -1, tested 0 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/agnx/rf.c b/drivers/staging/agnx/rf.c index 8294b6e2eb9d..9e1e9d5ccf9b 100644 --- a/drivers/staging/agnx/rf.c +++ b/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;