From nobody Sun Feb 8 16:50:45 2026 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 27EA5341ADD for ; Tue, 6 Jan 2026 13:43:28 +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=1767707010; cv=none; b=SGbdE3n5iYOGY8AuALBT9rK6PRasZ7kDFBwaR+U4G63RUaQvs8hqbR5ZstACn8qTNw8pQdqKGNZoo4ntlLM7Jn/uTaFB1UCvwspxP0CaeaVEYY0al7mXytDElTwkAtdh4syZBJVihwr1L4b1GQFKmp3znqliyaHT/gDfcEwFAxM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767707010; c=relaxed/simple; bh=32UhQmIuVg7RFlQt1JWZY3VmEmTIMShoXJksn4Mgi48=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sc61nO9Jcc7K9b63pkm/YIQUhpo+mliOMbCWrE0YNf+szUk8PZg/+/q1FxzcSjCnmfel+SANi8P8wY2KdTkqXeWdCHAC61MLVS776Et9bsUDX9qvHHuZJpUERtgDnwMjmRm5S1K5RUSz93P29EXHyeP4Fqm9AlGPTCGLcBbcTSM= 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=ZEdB7EhL; 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="ZEdB7EhL" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1767707008; 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=cLArHPeP1sDYwq27BLpCMkE5lpVuL1KHGveKa/KTPcs=; b=ZEdB7EhL2WmEfjSuspr7lIWXdoAysStT3HMFQnfAl3WRk71aQs2V8if5RJyOBpwhfY8LXg /kSLNgl83xm4kcCpILPqKM90Gdeo7846/I5MOVXrZHtnZKkKWBgwQ/v5MYA/webGCYE3Eq xNhnPBS8AK3a1EH1PWC/YOGBE9KWVeY= Received: from mx-prod-mc-05.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-696-UZ2tysFYMMG8f5pf0ytBog-1; Tue, 06 Jan 2026 08:43:25 -0500 X-MC-Unique: UZ2tysFYMMG8f5pf0ytBog-1 X-Mimecast-MFC-AGG-ID: UZ2tysFYMMG8f5pf0ytBog_1767707004 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-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D678019560A1; Tue, 6 Jan 2026 13:43:23 +0000 (UTC) Received: from wcosta-thinkpadt14gen4.rmtbr.csb (unknown [10.22.89.23]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 427151800666; Tue, 6 Jan 2026 13:43:19 +0000 (UTC) From: Wander Lairson Costa To: Steven Rostedt , Tomas Glozar , Wander Lairson Costa , Crystal Wood , Ivan Pravdin , Costa Shulyupin , John Kacur , Tiezhu Yang , linux-trace-kernel@vger.kernel.org (open list:Real-time Linux Analysis (RTLA) tools), linux-kernel@vger.kernel.org (open list:Real-time Linux Analysis (RTLA) tools), bpf@vger.kernel.org (open list:BPF [MISC]:Keyword:(?:\b|_)bpf(?:\b|_)) Subject: [PATCH v2 09/18] rtla: Remove redundant memset after calloc Date: Tue, 6 Jan 2026 08:49:45 -0300 Message-ID: <20260106133655.249887-10-wander@redhat.com> In-Reply-To: <20260106133655.249887-1-wander@redhat.com> References: <20260106133655.249887-1-wander@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 Content-Type: text/plain; charset="utf-8" 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/acti= ons.c index b50bf9f9adf28..00bbc94dec1bd 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 =3D 0; self->continue_flag =3D false; =20 - memset(&self->present, 0, sizeof(self->present)); - /* This has to be set by the user */ self->trace_output_inst =3D NULL; } --=20 2.52.0