From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id E7A9E740032 for ; Thu, 26 Oct 2023 23:54:03 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=LQhxvg4JbqsQGgtxYCqcX41e+YVdunTF4D4MAtKAVHc=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1698364442; v=1; b=IgzUnIBFxQWXsgoGleL8DAe8vN8GqWmScmW5PNNX7fFaOJjX22rW4cH8v+j6raP3o4p2easd +s7vnjpjPsPtQFbnlsxTZKIQsf3CDs2r5Zrx+JrVrmcqWR8+6DPtsYsBFXNDtH723FOcBQiVsA7 a2PfG74uvOfPa2Qs037yz5MM= X-Received: by 127.0.0.2 with SMTP id ulggYY7687511xguCcnWF3PQ; Thu, 26 Oct 2023 16:54:02 -0700 X-Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) by mx.groups.io with SMTP id smtpd.web10.215563.1698364441403687584 for ; Thu, 26 Oct 2023 16:54:01 -0700 X-Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-507b96095abso2173091e87.3 for ; Thu, 26 Oct 2023 16:54:01 -0700 (PDT) X-Gm-Message-State: HmvGcgxzLwnBUQrwtf8DYsjyx7686176AA= X-Google-Smtp-Source: AGHT+IEOEgU9IiDlZld6gSsevaZOvI64Oan/QHV49HSNC6B2qbBJsmUB85/eTtRXzzSZE6YRvNOlbA== X-Received: by 2002:a05:6512:2396:b0:503:343a:829f with SMTP id c22-20020a056512239600b00503343a829fmr842602lfv.23.1698364439433; Thu, 26 Oct 2023 16:53:59 -0700 (PDT) X-Received: from localhost.localdomain ([79.164.221.98]) by smtp.gmail.com with ESMTPSA id u8-20020a056512040800b00507a8789b43sm39389lfk.269.2023.10.26.16.53.58 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 26 Oct 2023 16:53:59 -0700 (PDT) From: "Mike Maslenkin" To: devel@edk2.groups.io Cc: abner.chang@amd.com, nicklew@nvidia.com, igork@ami.com, Mike Maslenkin Subject: [edk2-devel] [edk2-redfish-client][PATCH v2 03/11] RedfishLib: remove redudant zeroing Date: Fri, 27 Oct 2023 02:53:46 +0300 Message-Id: <20231026235354.67625-4-mike.maslenkin@gmail.com> In-Reply-To: <20231026235354.67625-1-mike.maslenkin@gmail.com> References: <20231026235354.67625-1-mike.maslenkin@gmail.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,mike.maslenkin@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=IgzUnIBF; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Memory allocated by calloc() is filled with bytes of value zero. Signed-off-by: Mike Maslenkin --- .../PrivateLibrary/RedfishLib/edk2libredfish/src/service.c | 1 - 1 file changed, 1 deletion(-) diff --git a/RedfishClientPkg/PrivateLibrary/RedfishLib/edk2libredfish/src/= service.c b/RedfishClientPkg/PrivateLibrary/RedfishLib/edk2libredfish/src/s= ervice.c index a38bdfbea65f..0ffc23725d37 100644 --- a/RedfishClientPkg/PrivateLibrary/RedfishLib/edk2libredfish/src/service= .c +++ b/RedfishClientPkg/PrivateLibrary/RedfishLib/edk2libredfish/src/service= .c @@ -1773,7 +1773,6 @@ createServiceEnumeratorNoAuth ( char *HostStart;=0D =0D ret =3D (redfishService *)calloc (1, sizeof (redfishService));=0D - ZeroMem (ret, sizeof (redfishService));=0D if (initRest (ret, restProtocol) !=3D 0) {=0D free (ret);=0D return NULL;=0D --=20 2.32.0 (Apple Git-132) -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#110148): https://edk2.groups.io/g/devel/message/110148 Mute This Topic: https://groups.io/mt/102211772/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-