Cleanup: bail on error
Coverity CID 207809 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
479371723d
commit
f26296f253
@ -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);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user