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

Joe Hershberger joe.hershberger at ni.com
Wed May 6 19:54:04 CEST 2015


Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>
---
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



More information about the U-Boot mailing list