- hw/virtio/virtio-pmem: Replace impossible check by assertion - tests: Fix printf format string in acpi-utils.c - softmmu/dirtylimit: Add parameter check for hmp "set_vcpu_dirty_limit" - disas/riscv: Fix the typo of inverted order of pmpaddr13 and pmpaddr14 - qga: Fix memory leak when output stream is unused - ui/vnc-clipboard: fix infinite loop in inflate_buffer (CVE-2023-3255) - target/i386: Add few security fix bits in ARCH_CAPABILITIES into SapphireRapids CPU model - target/i386: Add new bit definitions of MSR_IA32_ARCH_CAPABILITIES - target/i386: Allow MCDT_NO if host supports - target/i386: Add support for MCDT_NO in CPUID enumeration - target/i386: Export MSR_ARCH_CAPABILITIES bits to guests - target/i386: add support for FB_CLEAR feature - target/i386: add support for FLUSH_L1D feature - crypto: remove shadowed 'ret' variable - hw/i2c/pmbus_device: Fix modifying QOM class internals from instance - hw/arm/xlnx-zynqmp: fix unsigned error when checking the RPUs number Signed-off-by: Jiabo Feng <fengjiabo1@huawei.com>
37 lines
1.2 KiB
Diff
37 lines
1.2 KiB
Diff
From b055bedb3fba592ab7e73615faf29854a18b0abc Mon Sep 17 00:00:00 2001
|
|
From: qihao <qihao_yewu@cmss.chinamobile.com>
|
|
Date: Tue, 10 Oct 2023 15:24:35 +0800
|
|
Subject: [PATCH] crypto: remove shadowed 'ret' variable
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
cheery-pick from 3cc9fe177f412494f084923149338c51dd232b9b
|
|
|
|
Both instances of 'ret' are used to store a gnutls API return code.
|
|
|
|
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
Message-ID: <20230922160644.438631-2-berrange@redhat.com>
|
|
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
|
|
Signed-off-by: Markus Armbruster <armbru@redhat.com>
|
|
Signed-off-by: qihao_yewu <qihao_yewu@cmss.chinamobile.com>
|
|
---
|
|
crypto/tls-cipher-suites.c | 1 -
|
|
1 file changed, 1 deletion(-)
|
|
|
|
diff --git a/crypto/tls-cipher-suites.c b/crypto/tls-cipher-suites.c
|
|
index 5e4f597464..d0df4badc0 100644
|
|
--- a/crypto/tls-cipher-suites.c
|
|
+++ b/crypto/tls-cipher-suites.c
|
|
@@ -52,7 +52,6 @@ GByteArray *qcrypto_tls_cipher_suites_get_data(QCryptoTLSCipherSuites *obj,
|
|
byte_array = g_byte_array_new();
|
|
|
|
for (i = 0;; i++) {
|
|
- int ret;
|
|
unsigned idx;
|
|
const char *name;
|
|
IANA_TLS_CIPHER cipher;
|
|
--
|
|
2.41.0.windows.1
|
|
|