hush: return consistent codes from run_command()
authorRabin Vincent <rabin@rab.in>
Wed, 29 Oct 2014 22:21:39 +0000 (23:21 +0100)
committerTom Rini <trini@ti.com>
Fri, 7 Nov 2014 21:27:06 +0000 (16:27 -0500)
commit484408fb5194586b6ba6251f15cbae0c445c3bf5
tree3e32c915a86efd1292711a8c0b3598301884ec53
parent7dbcb76e77361970f7223c1bca4fdc9bb0436a08
hush: return consistent codes from run_command()

Attempting to run:
 - an empty string
 - a string with just spaces

returns different error codes, 1 for the empty string and 0
for the string with just spaces.  Make both of them return
0 for consistency.

Signed-off-by: Rabin Vincent <rabin@rab.in>
Acked-by: Simon Glass <sjg@chromium.org)
common/cli_hush.c
test/command_ut.c