scripts: imx-image: exit on read/write failures
When xread/xwrite fails the caller bails out of the program with an
error. We can drop all the error handling by letting xread/xwrite
call exit() themselves.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 7d17643 commit 6bb165deb02a78bc9bb553f183716f8b7dcaa85e
@Sascha Hauer Sascha Hauer authored on 19 Jun 2020
Showing 1 changed file
View
scripts/imx/imx-image.c