From nobody Thu May 2 18:17:29 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1584803498; cv=none; d=zohomail.com; s=zohoarc; b=UZfVJwUHi7zJZd22akcvDkwl4SF7lI3k+PlT4qsiefMfVto5hxxBf0vxtmJxpf0Eh3AEJU5FQtH6d5jSgSVi95t/z1CEbxzyfKk/ff86C67SVllm2Gj4BhRtzeALUPfm1iKoDX/phjduSoC9vyO9w21NG0oIXdC8hdae6FAqBUA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1584803498; h=Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To; bh=lrwQzyGz3reoUhIJX+RF45gEQT3Zn6y3hAo7+xn5dj4=; b=BmA0M2mF4KoN7fsE/Elkv8tqewYIPSegi3pk8f9dJwyS9oWlx6DItZ0cEDl5xhI/UJVRaUx4BIWp7/qOR5wo41s5YZUJr7TvoNUY60tqyzoCr/5UvLka8SEMLmo1/3E9VTbBL7rGeLDKhKbNjCG5p2u622nhXQoRjx/LS/hhPJo= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1584803497843777.0941736671076; Sat, 21 Mar 2020 08:11:37 -0700 (PDT) Received: from localhost ([::1]:38004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFfmi-0003lC-39 for importer@patchew.org; Sat, 21 Mar 2020 11:11:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36487) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFfls-00030N-LF for qemu-devel@nongnu.org; Sat, 21 Mar 2020 11:10:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jFflq-0008Vb-Ma for qemu-devel@nongnu.org; Sat, 21 Mar 2020 11:10:44 -0400 Received: from cmccmta1.chinamobile.com ([221.176.66.79]:7318) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jFflq-0008ND-30 for qemu-devel@nongnu.org; Sat, 21 Mar 2020 11:10:42 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.13]) by rmmx-syy-dmz-app02-12002 (RichMail) with SMTP id 2ee25e762e5d272-54118; Sat, 21 Mar 2020 23:10:22 +0800 (CST) Received: from maozy-host.localdomain (unknown[117.136.68.181]) by rmsmtp-syy-appsvr07-12007 (RichMail) with SMTP id 2ee75e762e594c3-813a7; Sat, 21 Mar 2020 23:10:22 +0800 (CST) X-RM-TRANSID: 2ee25e762e5d272-54118 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-RM-TRANSID: 2ee75e762e594c3-813a7 From: Mao Zhongyi To: qemu-devel@nongnu.org Subject: [PATCH] monitor/hmp-cmds: remove redundant check for tls_authz in hmp_info_migrate_parameters Date: Sat, 21 Mar 2020 23:10:15 +0800 Message-Id: <20200321151015.564989-1-maozhongyi@cmss.chinamobile.com> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 221.176.66.79 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dgilbert@redhat.com, Mao Zhongyi , armbru@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 'params->has_tls_authz =3D true' has been hardcoded as true in qmp_query_migrate_parameters, so remove the redundant check. Signed-off-by: Mao Zhongyi --- monitor/hmp-cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor/hmp-cmds.c b/monitor/hmp-cmds.c index f8be6bbb16..d18826309b 100644 --- a/monitor/hmp-cmds.c +++ b/monitor/hmp-cmds.c @@ -461,7 +461,7 @@ void hmp_info_migrate_parameters(Monitor *mon, const QD= ict *qdict) params->max_postcopy_bandwidth); monitor_printf(mon, "%s: '%s'\n", MigrationParameter_str(MIGRATION_PARAMETER_TLS_AUTHZ), - params->has_tls_authz ? params->tls_authz : ""); + params->tls_authz); } =20 qapi_free_MigrationParameters(params); --=20 2.17.1