validate: fix validation return code

Only return code for last checked file was returned. Now the highest
return code is returned for the list of files

Change-Id: I795e891b995eec121187778e4213f96e08d171b3
Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
1 file changed