Cleanup: bail on error

Coverity CID 207809

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-12-28 15:52:54 -08:00
parent 479371723d
commit f26296f253

View File

@ -671,6 +671,7 @@ static int get_file_list(suunto_eonsteel_device_t *eon, struct directory_entry *
sizeof(result), result); sizeof(result), result);
if (rc < 0) { if (rc < 0) {
ERROR(eon->base.context, "cmd DIR_LOOKUP failed"); ERROR(eon->base.context, "cmd DIR_LOOKUP failed");
return -1;
} }
HEXDUMP(eon->base.context, DC_LOGLEVEL_DEBUG, "DIR_LOOKUP", result, rc); HEXDUMP(eon->base.context, DC_LOGLEVEL_DEBUG, "DIR_LOOKUP", result, rc);