Skip to content

Commit d849f3a

Browse files
walaclenticularis39
authored andcommitted
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>
1 parent 9bf942f commit d849f3a

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

tools/tracing/rtla/src/actions.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ actions_init(struct actions *self)
1919
self->len = 0;
2020
self->continue_flag = false;
2121

22-
memset(&self->present, 0, sizeof(self->present));
23-
2422
/* This has to be set by the user */
2523
self->trace_output_inst = NULL;
2624
}

0 commit comments

Comments
 (0)