Fix statement is unreachable warning

This commit is contained in:
twinaphex 2016-09-22 23:10:11 +02:00
parent 714db40fa0
commit d641930baf

View File

@ -388,12 +388,10 @@ int file_archive_parse_file_iterate(
state->type = ARCHIVE_TRANSFER_DEINIT_ERROR;
break;
case ARCHIVE_TRANSFER_ITERATE:
if (file_archive_get_file_backend(file))
{
const struct file_archive_file_backend *backend =
file_archive_get_file_backend(file);
if (backend)
{
int ret = backend->archive_parse_file_iterate_step(state,
valid_exts, userdata, file_cb);
if (ret != 1)
@ -404,10 +402,7 @@ int file_archive_parse_file_iterate(
/* early return to prevent deinit from never firing */
return 0;
}
else
return -1;
}
break;
case ARCHIVE_TRANSFER_DEINIT_ERROR:
*returnerr = false;
case ARCHIVE_TRANSFER_DEINIT: