From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) by mx.groups.io with SMTP id smtpd.web12.39753.1658232635155523363 for ; Tue, 19 Jul 2022 05:10:35 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mMwIYyzB; spf=pass (domain: gmail.com, ip: 209.85.167.54, mailfrom: savvamtr@gmail.com) Received: by mail-lf1-f54.google.com with SMTP id e28so24373565lfj.4 for ; Tue, 19 Jul 2022 05:10:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wg9I1SpA85FtcFM+vnn2ERoyd11+oGCItHMWQuARHRk=; b=mMwIYyzBk2Xvy+A9Ue8ysXiNWTezPQx/MQaWZqM9vQ/Xc3XV+SmlmH9tU3/Rq/X+Ts FRFgYm4YI+H3hptRyX+sRBTKeL2kynmv1qXoJBJB4xcz6gOUDi4CNr0B90sZ7uFm6hn7 cc4/T7gzC2igcbRbRUUwGLAdrsEezLy7zhkn/AQ2SBXZL4ZCslnEnNqagNNQLlXdVhvs aDgh9Icu9w7a14Klm1l1+fcb01qf8CuPwaWQJHMxkPLuS+23jcK6y+pRKrdtf7lveK+8 SbUMGAfTsHqhP4aQg5Hplz9fF2aRyb7xdnET7Ivvu/SyzosY1X5qKKJc4uwKhK7WeBro yrYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wg9I1SpA85FtcFM+vnn2ERoyd11+oGCItHMWQuARHRk=; b=4Cd95MKDveSbIEeYUzz0MjYMLKNFp2Z8CwCs8opjvqcRMJGVKdcnxVvusCjiGwkF+J AeJJ+nBe5t2qG/8ule8dp8VM9n1uq7voTapjRGm5NZ0L1L+jhcXFYVT1Ut0hH6+C9yIz PjSMA67066zjY/Y1Q+PShCc/bebg4UYDou2UHZN5DATI/fAlKrtH0zFHJVkCIlzDyhlF qsVnMPRCvv/izZ4CM9YBj12L32FUQWqI50WISrk/VMCVyjpLm69SI2f47gNh4sPpJ0P+ EYwaisSkXJ0fDVxFdG6L9Mw8e7FVDBbF2ictYKxI/HWFJK3noDVjaW2BAQWm3EC8/GhJ ru3Q== X-Gm-Message-State: AJIora/Un/oNIUSrMeAnF9wxMqdYU6/9tcQ0ghrGelPFxZ6NCNT25Mu4 xNbBvWAPiVltgD6slLM+LcbLt3+k7YnTUhKSEXU= X-Google-Smtp-Source: AGRyM1ullGqlvrpom1Xn9DZ2Ui4jgJ/ZldNbMfLrpuCzq74NU7liQHodlFYQTaWOqkGLzAfLZCIuEg== X-Received: by 2002:ac2:4e0c:0:b0:489:e6c8:47e9 with SMTP id e12-20020ac24e0c000000b00489e6c847e9mr16679519lfr.666.1658232633065; Tue, 19 Jul 2022 05:10:33 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([207.180.219.167]) by smtp.gmail.com with ESMTPSA id z20-20020a2eb534000000b0025d6ecbc897sm2668245ljm.46.2022.07.19.05.10.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jul 2022 05:10:32 -0700 (PDT) From: "Savva Mitrofanov" To: devel@edk2.groups.io Cc: =?UTF-8?q?Marvin=20H=C3=A4user?= , Pedro Falcato , Vitaly Cheptsov Subject: [edk2-platforms][PATCH 01/10] Ext4Pkg: Replace SetMem(,,0) with ZeroMem Date: Tue, 19 Jul 2022 18:10:07 +0600 Message-Id: <20220719121016.29380-2-savvamtr@gmail.com> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220719121016.29380-1-savvamtr@gmail.com> References: <20220719121016.29380-1-savvamtr@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Marvin H=C3=A4user Cc: Pedro Falcato Cc: Vitaly Cheptsov Signed-off-by: Savva Mitrofanov --- Features/Ext4Pkg/Ext4Dxe/Inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Features/Ext4Pkg/Ext4Dxe/Inode.c b/Features/Ext4Pkg/Ext4Dxe/In= ode.c index 831f5946e870..142ee6e3d78a 100644 --- a/Features/Ext4Pkg/Ext4Dxe/Inode.c +++ b/Features/Ext4Pkg/Ext4Dxe/Inode.c @@ -158,7 +158,7 @@ Ext4Read ( WasRead =3D HoleLen > RemainingRead ? RemainingRead : HoleLen;=0D // Potential improvement: In the future, we could get the file hole'= s total=0D // size and memset all that=0D - SetMem (Buffer, WasRead, 0);=0D + ZeroMem (Buffer, WasRead);=0D } else {=0D ExtentStartBytes =3D MultU64x32 (=0D LShiftU64 (Extent.ee_start_hi, 32) |=0D @@ -431,7 +431,7 @@ Ext4FileCreateTime ( Inode =3D File->Inode;=0D =0D if (!EXT4_INODE_HAS_FIELD (Inode, i_crtime)) {=0D - SetMem (Time, sizeof (EFI_TIME), 0);=0D + ZeroMem (Time, sizeof (EFI_TIME));=0D return;=0D }=0D =0D --=20 2.37.0