subsys/profiling: no need to explicitly set idx
to 0
static perf_data is zero-initialized by default, there's no need to explicitly set `idx` to `0`. Signed-off-by: Yong Cong Sin <ycsin@meta.com> Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
parent
cdd3e6fa84
commit
cd3b8dd938
1 changed files with 1 additions and 3 deletions
|
@ -29,9 +29,7 @@ struct perf_data_t {
|
|||
|
||||
#define PERF_EVENT_TRACING_BUF_OVERFLOW (1 << 0)
|
||||
|
||||
static struct perf_data_t perf_data = {
|
||||
.idx = 0,
|
||||
};
|
||||
static struct perf_data_t perf_data;
|
||||
|
||||
static void perf_tracer(struct k_timer *timer)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue