diff --git a/src/subcommand_record.cpp b/src/subcommand_record.cpp index 64d55d4..5a4863c 100644 --- a/src/subcommand_record.cpp +++ b/src/subcommand_record.cpp @@ -678,8 +678,7 @@ bool SubCommandRecord::SetPerfMaxSampleRate() printf("read %s fail.\n", PERF_EVENT_MAX_SAMPLE_RATE.c_str()); return false; } - if (maxRate > frequency) - { + if (maxRate > frequency) { return true; } int newRate = frequency > PerfEvents::DEFAULT_EVENT_MAX_SAMPLE_RATE ? frequency :