]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: kwboot: Check for return value of kwboot_tty_send() and tcflush()
authorPali Rohár <pali@kernel.org>
Wed, 2 Mar 2022 10:49:18 +0000 (11:49 +0100)
committerStefan Roese <sr@denx.de>
Fri, 4 Mar 2022 12:11:42 +0000 (13:11 +0100)
commitd8865f8677c6dd43109e22bfbb85a3cd6bf6aca1
treebcf2bc4f0a189df19a8ef7d4ca1f1664f96b0174
parent0a6f0297c677946907b7ba34d34995fe03055aad
tools: kwboot: Check for return value of kwboot_tty_send() and tcflush()

Failure of kwboot_tty_send() and tcflush() functions is fatal, it does not
make sense to continue. So return error back to the caller like in other
places where are called these functions.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Tested-by: Stefan Roese <sr@denx.de>
tools/kwboot.c