summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWander Lairson Costa <wander@redhat.com>2026-01-06 08:49:45 -0300
committerTomas Glozar <tglozar@redhat.com>2026-01-07 15:57:55 +0100
commitd849f3af1cc7a53e3b150a9bbade8f9629445b36 (patch)
treea97087f41a56c00821cac2e1ca7adcdb7c909cdf
parent9bf942f3c370c9b3af639df04cb5f34daf512dab (diff)
rtla: Remove redundant memset after calloc
The actions struct is allocated using calloc, which already returns zeroed memory. The subsequent memset call to zero the 'present' member is therefore redundant. Signed-off-by: Wander Lairson Costa <wander@redhat.com> Link: https://lore.kernel.org/r/20260106133655.249887-10-wander@redhat.com Signed-off-by: Tomas Glozar <tglozar@redhat.com>
-rw-r--r--tools/tracing/rtla/src/actions.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/tracing/rtla/src/actions.c b/tools/tracing/rtla/src/actions.c
index ace9965ebd55..d9c1db5d97d4 100644
--- a/tools/tracing/rtla/src/actions.c
+++ b/tools/tracing/rtla/src/actions.c
@@ -19,8 +19,6 @@ actions_init(struct actions *self)
self->len = 0;
self->continue_flag = false;
- memset(&self->present, 0, sizeof(self->present));
-
/* This has to be set by the user */
self->trace_output_inst = NULL;
}