]> git.baikalelectronics.ru Git - uboot.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)
commit88c5c3582afd53094c10cb8aba36ea787035a34e
treebcf2bc4f0a189df19a8ef7d4ca1f1664f96b0174
parentc9424a4bfcf38b97b7226c6ee5aa5c226809bf3c
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