of/selftest: clean-up of_selftest_platform_populate pass/fail handling
authorRob Herring <robh@kernel.org>
Tue, 13 May 2014 15:07:29 +0000 (10:07 -0500)
committerRob Herring <robh@kernel.org>
Tue, 13 May 2014 19:11:10 +0000 (14:11 -0500)
commit7d1cdc89c54d2cb8157cf1f36fc65e8583d26484
tree5cc736fc8aa9609bc761f9ae8fb3633c741362d3
parentd9c6866be8a145e32da616d8dcbae806032d75b5
of/selftest: clean-up of_selftest_platform_populate pass/fail handling

Move the pass/fail checks into selftest() calls instead of a separate if
condition. Unconditionally calling pass was wrong.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Grant Likely <grant.likely@linaro.org>
drivers/of/selftest.c