unittest: pass_haltests: Remove unreached return statement and unneeded if statement 99/191599/1
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 1 Oct 2018 00:36:00 +0000 (09:36 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 19 Oct 2018 00:03:45 +0000 (09:03 +0900)
commit0919304a2b9b6aecfe4206e37dcc40306da33c59
tree559e71cfb267e2a93e77eefd476f25fb2dcbf4af
parent1859a936bec270acc232ca0adb3dab33a4bf75fb
unittest: pass_haltests: Remove unreached return statement and unneeded if statement

ASSERT_EQ() macro is able to check the 'return value' and then if 'return value'
is less than zero, print error message and exit the unittest. It means that
the separate 'if statement' for checking 'return value' is not neeeded
when using ASSERT_EQ().

Also, when using ASSERT_EQ() macro, the unittest don't need to call
'return statement' because ASSERT_EQ() return right now if 'return value'
is error. So, remove unreached return statement.

Change-Id: I2808d033e669a021a5b53226bf44c91241640c9a
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
unittest/pass_haltests.cpp