aoe: error printed 1 too early
authorRoel Kluin <roel.kluin@gmail.com>
Wed, 4 Mar 2009 08:07:57 +0000 (00:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2009 08:11:52 +0000 (00:11 -0800)
commit948731115774c2e5ff7409360f35389459502211
tree7a6c8901195861939ac7f9bde508d62f7403bb0d
parentb9bdcd9bd78d253dcc8e13c29f0acd67e080e7c1
aoe: error printed 1 too early

with while (i-- > 0); i reaches -1 after the loop, so the test below is printed
one too early: 0 still means success.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/block/aoe/aoedev.c