dediprog: Revise id matching

Avoid printing a redundant error message, as we already print one inside
dediprog_read_id().  Also break early when a match is found, so we don't
have to repeat the clean-up code.

Change-Id: I2f85432a83f1a9d1b6efe0fc9c47a36d9c4934a8
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/104
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
1 file changed