Removed reduntant variable
This commit is contained in:
parent
94df75cdeb
commit
6911cc782b
@ -1175,13 +1175,6 @@ int cache_status(unsigned int cache_id, unsigned int core_id, int io_class_id,
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
/* Select file to which statistics shall be printed and
|
||||
*
|
||||
*/
|
||||
FILE *outfile;
|
||||
|
||||
outfile = stdout;
|
||||
|
||||
/**
|
||||
* printing in statistics will be performed in separate
|
||||
* thread, so that we can interleave statistics collecting
|
||||
@ -1189,7 +1182,7 @@ int cache_status(unsigned int cache_id, unsigned int core_id, int io_class_id,
|
||||
*/
|
||||
struct stats_printout_ctx printout_ctx;
|
||||
printout_ctx.intermediate = intermediate_file[0];
|
||||
printout_ctx.out = outfile;
|
||||
printout_ctx.out = stdout;
|
||||
printout_ctx.type = (OUTPUT_FORMAT_CSV == output_format ? CSV : TEXT);
|
||||
pthread_t thread;
|
||||
pthread_create(&thread, 0, stats_printout, &printout_ctx);
|
||||
@ -1302,8 +1295,5 @@ cleanup:
|
||||
|
||||
fclose(intermediate_file[0]);
|
||||
|
||||
if (outfile != stdout) {
|
||||
fclose(outfile);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user