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 <paulo.r.zanoni@intel.com>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Paulo Zanoni 2011-09-16 18:06:27 -03:00 committed by Daniel Vetter
parent a167425b39
commit 17ceccedbf

View File

@ -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;