Minor optimization: Don't set parent's "don't cache" to match child

Don't set the parent layer's "don't cache" flag to match the child.

`emax_reached()` already does the same thing so doing it again is unnecessary.
This commit is contained in:
Craig Andrews 2023-07-31 19:48:38 -04:00 committed by GitHub
parent 35ff4fed90
commit cec59d79c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -803,10 +803,6 @@ cl_error_t cli_scan_desc(int desc, cli_ctx *ctx, cli_file_t ftype, bool filetype
status = cli_scan_fmap(ctx, ftype, filetype_only, ftoffset, acmode, acres, NULL);
map->dont_cache_flag = ctx->fmap->dont_cache_flag; /* Set the parent layer's "don't cache" flag to match the child.
TODO: This may not be needed since `emax_reached()` should've
already done that for us. */
(void)cli_recursion_stack_pop(ctx); /* Restore the parent fmap */
done: