mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-11 01:46:14 +00:00
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:
parent
a167425b39
commit
17ceccedbf
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user