From 17ceccedbf8c09368b72ecc4afe12f0d1e63837e Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Fri, 16 Sep 2011 18:06:27 -0300 Subject: [PATCH] testdisplay: return 0 when successful We use the "ret" variable to check function return values, and these values are not necessarily 0 on the successful cases, so we need to reset "ret" after we finish using it. Signed-off-by: Paulo Zanoni Signed-Off-by: Daniel Vetter --- tests/testdisplay.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/testdisplay.c b/tests/testdisplay.c index d6505379..01f31dcb 100644 --- a/tests/testdisplay.c +++ b/tests/testdisplay.c @@ -1136,6 +1136,8 @@ int main(int argc, char **argv) goto out_stdio_off; } + ret = 0; + if (!update_display()) { ret = 1; goto out_stdio_off;