From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00FF63376B8 for ; Mon, 17 Nov 2025 18:56:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763405807; cv=none; b=IHQuIdFP7pZ4mOLVwYAM7ZqukiAKx86rlMxm1zV1ZZwbCzmAZGOLwQXzFBUEqd+a5oWEly4O1UHHxYafGrIGEoSr84iseiMdflCCdgnTMRk3yIrc9r7fb2Bf0lWlGb5gCvZ2NnXMjwHhjBzhK9a/vIWU/al1FtJFjZT2XwfJI5I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763405807; c=relaxed/simple; bh=TGCoCAcq2y7OxivunBKMIbeWuNFR98CZQ62cm5S07F4=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jMHakskNfXcQ5RbT8INkq3RFJQhVNw66hCiiqgHo93MhtIwm9IWqEgflbc/v4DYzExhhWSYRAFonR41lcC1eWXA4zNOpQHLG8tuS/p9SaE7eQdvSvUH2j/yzvQ1nEsayDcWmpfycy0vOgG/Xi9b6Vl3QEhypf3GPd0YF6ThHegM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=WDaNxqeH; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="WDaNxqeH" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1763405804; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8aE5DbYVi2HZztUMg23QDXtKPFVnuO/XlPsKz1PiYi4=; b=WDaNxqeHkzAVjSXVqe/GSv8KsjL061ZQGHUFEYjv+04EfZGiJEMiMWbFaHmxqRXcmIVTDP OCBvuBVUlO9ePDCQ4my31BN+7rNkUfWBGTlodfhH/bW5GheoQU54w95p5a91TKnYDrMhFR EJPrjPwiURfPYCW5jG6brRiiST0/ETY= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-634-gB1xQUfCP9WI-rotCyQuxA-1; Mon, 17 Nov 2025 13:56:39 -0500 X-MC-Unique: gB1xQUfCP9WI-rotCyQuxA-1 X-Mimecast-MFC-AGG-ID: gB1xQUfCP9WI-rotCyQuxA_1763405798 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 5C0371956096; Mon, 17 Nov 2025 18:56:38 +0000 (UTC) Received: from wcosta-thinkpadt14gen4.rmtbr.csb (unknown [10.22.81.153]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 4173B180049F; Mon, 17 Nov 2025 18:56:33 +0000 (UTC) From: Wander Lairson Costa To: Steven Rostedt , Wander Lairson Costa , Tomas Glozar , Crystal Wood , Ivan Pravdin , John Kacur , Costa Shulyupin , Tiezhu Yang , linux-trace-kernel@vger.kernel.org (open list:Real-time Linux Analysis (RTLA) tools), linux-kernel@vger.kernel.org (open list), bpf@vger.kernel.org (open list:BPF [MISC]:Keyword:(?:\b|_)bpf(?:\b|_)) Subject: [rtla 10/13] rtla: Remove redundant memset after calloc Date: Mon, 17 Nov 2025 15:41:17 -0300 Message-ID: <20251117184409.42831-11-wander@redhat.com> In-Reply-To: <20251117184409.42831-1-wander@redhat.com> References: <20251117184409.42831-1-wander@redhat.com> Precedence: bulk X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 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 --- tools/tracing/rtla/src/actions.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/tracing/rtla/src/actions.c b/tools/tracing/rtla/src/actions.c index 2a01ece78454c..2d153d5efdea2 100644 --- a/tools/tracing/rtla/src/actions.c +++ b/tools/tracing/rtla/src/actions.c @@ -21,8 +21,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; return 0; -- 2.51.1