[U-Boot] [WORKING PATCH 2/2] fixup! test: dm: eth: Handle failed test env cleanup

Joe Hershberger
2015-05-06T17:54:04Z

This fixes the one warning that was listed in your buildman output.
For whatever reason my older gcc does not throw this warning.

test/dm/eth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/dm/eth.c b/test/dm/eth.c
index a01cf57..700abdd 100644
--- a/test/dm/eth.c
+++ b/test/dm/eth.c
@@ -187,6 +187,6 @@ static int dm_test_net_retry(struct unit_test_state *uts)
setenv("netretry", NULL);
sandbox_eth_disable_response(1, false);

- return 0;
+ return retval;
}
DM_TEST(dm_test_net_retry, DM_TESTF_SCAN_FDT);
--
1.7.11.5