Browse Source

MT#61977 remove logically dead test

if ((output_storage & OUTPUT_STORAGE_MEMORY))
		goto no_output_file;

jumps over this code, so there's no point in testing for
OUTPUT_STORAGE_MEMORY

Change-Id: I95eec8904714c9ab06f066ac4bb59ec0413e6916
pull/1998/head
Richard Fuchs 4 months ago
parent
commit
28884150b7
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      recording-daemon/output.c

+ 3
- 5
recording-daemon/output.c View File

@ -441,11 +441,9 @@ got_fn:
output->filename = full_fn;
err = "failed to open output file";
if (!(output_storage & OUTPUT_STORAGE_MEMORY)) {
output->fp = fopen(full_fn, (output_storage & OUTPUT_STORAGE_DB) ? "wb+" : "wb");
if (!output->fp)
goto err;
}
output->fp = fopen(full_fn, (output_storage & OUTPUT_STORAGE_DB) ? "wb+" : "wb");
if (!output->fp)
goto err;
if (output_buffer > 0) {
err = "failed to alloc I/O buffer";


Loading…
Cancel
Save