[PATCH] postfix decrement error in smc911x_reset(); drivers/net/smc911x.c

2007-11-04 Thread Roel Kluin
If timeout causes the loop to end, a postfix decrement causes its value to become 4294967295 (unsigned int), not 0. Signed-off-by: Roel Kluin [EMAIL PROTECTED] --- diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c index dd18af0..41f3c8f 100644 --- a/drivers/net/smc911x.c +++

Re: [PATCH] postfix decrement error in smc911x_reset(); drivers/net/smc911x.c

2007-11-04 Thread Roel Kluin
And there was another one... -- If timeout causes the loop to end, a postfix decrement causes its value to become 4294967295 (unsigned int), not 0. Signed-off-by: Roel Kluin [EMAIL PROTECTED] --- diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c index dd18af0..fac1d2a 100644 ---

Re: [PATCH] postfix decrement error in smc911x_reset(); drivers/net/smc911x.c

2007-11-04 Thread Roel Kluin
Darn, another. Sorry for the noise; I also removed a whitespace in this one -- If timeout causes the loop to end, a postfix decrement causes its value to become 4294967295 (unsigned int), not 0. Signed-off-by: Roel Kluin [EMAIL PROTECTED] --- diff --git a/drivers/net/smc911x.c