aboutsummaryrefslogtreecommitdiff
path: root/tests/qtest/ipmi-kcs-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qtest/ipmi-kcs-test.c')
-rw-r--r--tests/qtest/ipmi-kcs-test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/qtest/ipmi-kcs-test.c b/tests/qtest/ipmi-kcs-test.c
index 693a6aacb5..fc0a918c8d 100644
--- a/tests/qtest/ipmi-kcs-test.c
+++ b/tests/qtest/ipmi-kcs-test.c
@@ -81,7 +81,8 @@ static void kcs_wait_obf(void)
{
unsigned int count = 1000;
while (IPMI_KCS_CMDREG_GET_OBF() == 0) {
- g_assert(--count != 0);
+ --count;
+ g_assert(count != 0);
}
}