Message ID | 20220819020349.747429-2-rostedt@goodmis.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 0aaa86a54a287f68a4ccafa4af772a7ed9073fde |
Headers | show |
Series | libtracefs: Some fixes for sqlhis | expand |
diff --git a/src/tracefs-hist.c b/src/tracefs-hist.c index 2f12cc471294..6f7d657bd404 100644 --- a/src/tracefs-hist.c +++ b/src/tracefs-hist.c @@ -1091,9 +1091,8 @@ struct tracefs_synth *tracefs_synth_alloc(struct tep_handle *tep, if (!synth->name || !synth->start_keys || !synth->end_keys || ret) { tracefs_synth_free(synth); synth = NULL; - } - - synth->new_format = has_new_format(); + } else + synth->new_format = has_new_format(); return synth; }