tools: kwboot: Avoid code repetition in kwboot_img_patch()
authorMarek Behún <marek.behun@nic.cz>
Fri, 24 Sep 2021 21:07:12 +0000 (23:07 +0200)
committerStefan Roese <sr@denx.de>
Fri, 1 Oct 2021 09:07:13 +0000 (11:07 +0200)
commitb4eea8f9b054068371dceddee84a54113362ecbc
treee68270ea5ba65b6e8f022063fdfc5a42608c645f
parent5fa04f47d7447ab0a38f248693930c815c978d26
tools: kwboot: Avoid code repetition in kwboot_img_patch()

Change kwboot_img_patch() to avoid code repetition of setting errno to
EINVAL.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwboot.c