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 607FC740034 for ; Wed, 21 Feb 2024 00:13:14 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=YuET5RzP1HJDPKsFu8dZ85PmD9MLc7ZHtiVrfNWvzWg=; 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=1708474393; v=1; b=s5h2dFhyQAEotCw4cm6geyv78QccD1FXE0ggH6SlPNuEDbjkE5ldTxWFTSYLFvB/9p/lDSPM LCxkuKg1TngjHC9bIBEW7Y7AHX9maSCzSf4I5vWUVIfKka6y+e8FtitJZ99pikC335+ig+AQ6cW fMRvkVAlu5wWpSzdyv8aORxk= X-Received: by 127.0.0.2 with SMTP id GXzKYY7687511xLtuKumAVVK; Tue, 20 Feb 2024 16:13:13 -0800 X-Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) by mx.groups.io with SMTP id smtpd.web11.1782.1708474391675240072 for ; Tue, 20 Feb 2024 16:13:12 -0800 X-Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-512a85806fcso38640e87.2 for ; Tue, 20 Feb 2024 16:13:11 -0800 (PST) X-Gm-Message-State: 0Pe4KiG1tAd6ea01JGWjkdWYx7686176AA= X-Google-Smtp-Source: AGHT+IEvvk18ptfqRQpOoR85OBiP9y+eyHUBS8WBTZj3h/CoCxivWVDdVEpsma1sLNu4prIAjdKDNg== X-Received: by 2002:a05:6512:3d24:b0:512:ae18:74a1 with SMTP id d36-20020a0565123d2400b00512ae1874a1mr6581352lfv.11.1708474389649; Tue, 20 Feb 2024 16:13:09 -0800 (PST) X-Received: from localhost.localdomain ([79.164.221.98]) by smtp.gmail.com with ESMTPSA id h27-20020a056512055b00b0051298559337sm1447103lfl.3.2024.02.20.16.13.08 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 20 Feb 2024 16:13:09 -0800 (PST) From: "Mike Maslenkin" To: devel@edk2.groups.io Cc: Mike Maslenkin , Abner Chang , Nickle Wang , Igor Kulchytskyy Subject: [edk2-devel] [PATCH 4/4] RedfishClientPkg: use Json value from a function argument Date: Wed, 21 Feb 2024 03:13:03 +0300 Message-Id: <20240221001303.57384-5-mike.maslenkin@gmail.com> In-Reply-To: <20240221001303.57384-1-mike.maslenkin@gmail.com> References: <20240221001303.57384-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=s5h2dFhy; 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 This patch replaces value Private->Json with Json used as second argument for RedfishIdentifyResource(). Currently Json argument is not used at all and the pattern for caller side is: Status =3D RedfishIdentifyResourceCommon (Private, Private->Json); So in scope of RedfishIdentifyResourceCommon Json actually is the same value as Private->Json. Let's make code a bit cleaner. Cc: Abner Chang Cc: Nickle Wang Cc: Igor Kulchytskyy Signed-off-by: Mike Maslenkin --- RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c | 2 +- .../Features/BootOption/v1_0_4/Common/BootOptionCommon.c | 2 +- .../ComputerSystem/v1_13_0/Common/ComputerSystemCommon.c | 2 +- .../ComputerSystem/v1_5_0/Common/ComputerSystemCommon.c | 2 +- RedfishClientPkg/Features/Memory/V1_7_1/Common/MemoryCommon.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c b/Re= dfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c index 0ae841499692..f3f993c8782e 100644 --- a/RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c +++ b/RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c @@ -729,7 +729,7 @@ RedfishIdentifyResourceCommon ( EFI_STRING EndOfChar;=0D REDFISH_FEATURE_ARRAY_TYPE_CONFIG_LANG_LIST ConfigLangList;=0D =0D - Supported =3D RedfishIdentifyResource (Private->Uri, Private->Json);=0D + Supported =3D RedfishIdentifyResource (Private->Uri, Json);=0D if (Supported) {=0D Status =3D RedfishFeatureGetUnifiedArrayTypeConfigureLang (RESOURCE_SC= HEMA, RESOURCE_SCHEMA_VERSION, REDPATH_ARRAY_PATTERN, &ConfigLangList);=0D if (EFI_ERROR (Status)) {=0D diff --git a/RedfishClientPkg/Features/BootOption/v1_0_4/Common/BootOptionC= ommon.c b/RedfishClientPkg/Features/BootOption/v1_0_4/Common/BootOptionComm= on.c index 0b9f2bf28434..f471c01c3790 100644 --- a/RedfishClientPkg/Features/BootOption/v1_0_4/Common/BootOptionCommon.c +++ b/RedfishClientPkg/Features/BootOption/v1_0_4/Common/BootOptionCommon.c @@ -791,7 +791,7 @@ RedfishIdentifyResourceCommon ( {=0D BOOLEAN Supported;=0D =0D - Supported =3D RedfishIdentifyResource (Private->Uri, Private->Json);=0D + Supported =3D RedfishIdentifyResource (Private->Uri, Json);=0D if (Supported) {=0D return EFI_SUCCESS;=0D }=0D diff --git a/RedfishClientPkg/Features/ComputerSystem/v1_13_0/Common/Comput= erSystemCommon.c b/RedfishClientPkg/Features/ComputerSystem/v1_13_0/Common/= ComputerSystemCommon.c index cee6c8bf9ba1..d69fc176ad94 100644 --- a/RedfishClientPkg/Features/ComputerSystem/v1_13_0/Common/ComputerSyste= mCommon.c +++ b/RedfishClientPkg/Features/ComputerSystem/v1_13_0/Common/ComputerSyste= mCommon.c @@ -848,7 +848,7 @@ RedfishIdentifyResourceCommon ( EFI_STRING EndOfChar;=0D REDFISH_FEATURE_ARRAY_TYPE_CONFIG_LANG_LIST ConfigLangList;=0D =0D - Supported =3D RedfishIdentifyResource (Private->Uri, Private->Json);=0D + Supported =3D RedfishIdentifyResource (Private->Uri, Json);=0D if (Supported) {=0D Status =3D RedfishFeatureGetUnifiedArrayTypeConfigureLang (RESOURCE_SC= HEMA, RESOURCE_SCHEMA_VERSION, REDPATH_ARRAY_PATTERN, &ConfigLangList);=0D if (EFI_ERROR (Status)) {=0D diff --git a/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Common/Compute= rSystemCommon.c b/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Common/Co= mputerSystemCommon.c index a67ef3dac283..11bcb5f76cab 100644 --- a/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Common/ComputerSystem= Common.c +++ b/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Common/ComputerSystem= Common.c @@ -1718,7 +1718,7 @@ RedfishIdentifyResourceCommon ( EFI_STRING EndOfChar;=0D REDFISH_FEATURE_ARRAY_TYPE_CONFIG_LANG_LIST ConfigLangList;=0D =0D - Supported =3D RedfishIdentifyResource (Private->Uri, Private->Json);=0D + Supported =3D RedfishIdentifyResource (Private->Uri, Json);=0D if (Supported) {=0D Status =3D RedfishFeatureGetUnifiedArrayTypeConfigureLang (RESOURCE_SC= HEMA, RESOURCE_SCHEMA_VERSION, REDPATH_ARRAY_PATTERN, &ConfigLangList);=0D if (EFI_ERROR (Status)) {=0D diff --git a/RedfishClientPkg/Features/Memory/V1_7_1/Common/MemoryCommon.c = b/RedfishClientPkg/Features/Memory/V1_7_1/Common/MemoryCommon.c index eb52c68c5dcb..00a69f748c3c 100644 --- a/RedfishClientPkg/Features/Memory/V1_7_1/Common/MemoryCommon.c +++ b/RedfishClientPkg/Features/Memory/V1_7_1/Common/MemoryCommon.c @@ -2516,7 +2516,7 @@ RedfishIdentifyResourceCommon ( EFI_STRING EndOfChar;=0D REDFISH_FEATURE_ARRAY_TYPE_CONFIG_LANG_LIST ConfigLangList;=0D =0D - Supported =3D RedfishIdentifyResource (Private->Uri, Private->Json);=0D + Supported =3D RedfishIdentifyResource (Private->Uri, Json);=0D if (Supported) {=0D Status =3D RedfishFeatureGetUnifiedArrayTypeConfigureLang (RESOURCE_SC= HEMA, RESOURCE_SCHEMA_VERSION, REDPATH_ARRAY_PATTERN, &ConfigLangList);=0D if (EFI_ERROR (Status)) {=0D --=20 2.32.0 (Apple Git-132) -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115688): https://edk2.groups.io/g/devel/message/115688 Mute This Topic: https://groups.io/mt/104479574/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-