smc911x: test after postfix decrement fails in smc911x_{reset,drop_pkt}
commitdb2961c5a13562503c82ae306af269fde4fea8f0
authorRoel Kluin <12o3l@tiscali.nl>
Fri, 18 Apr 2008 20:50:48 +0000 (18 13:50 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 25 Apr 2008 06:08:55 +0000 (25 02:08 -0400)
treefe08d96d6be9245009dba0e6b47aef04502167fb
parent72abb46101fb5c47a9592914adb221b430ff26bd
smc911x: test after postfix decrement fails in smc911x_{reset,drop_pkt}

When timeout reaches 0 the postfix decrement still subtracts, so the test
fails.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/smc911x.c