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:
Yong Cong Sin 2024-08-16 11:57:07 +08:00 committed by Henrik Brix Andersen
commit cd3b8dd938

View file

@ -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)
{