From nobody Sun Feb 8 15:25:58 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1605541169; cv=none; d=zohomail.com; s=zohoarc; b=Wy3UaNbVQozZwPThe7LuZ4v7+L12L0qHYqv26Br0/h3i2YTm08Hq/dYwoemmPf7STNOtF42VRsNBSnOjDwrEfgHeyCWKqYaczLBfPg4yRAU8LYiI7x2itEfqG8lq/D5OgA0FQyGY1vwBCSkctWbfcvxUKQls/Egv5aiYRHEDzdQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1605541169; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=DgqvtvUvplWI/+I85QlPp+b1F5wTTyRGXMVHEh91e5Y=; b=XoC15DA2wU+Y6O9bk5+H3F9hKDtdZJ9M1YLPOPos9ri5aUSxFlVxb5fLRTkev+ScEGFYvlY8KH8iWC0VEGQg9VetCiNuwtvbfBnz612Lpn0mfFeRrcq8UkagBQOEbUAZ2Vi5l+U+KgnJT2m49ppr/+yDkyduyEH2Gj5BmbDZ6ww= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1605541169335625.3409690807345; Mon, 16 Nov 2020 07:39:29 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-554-SAassQc3Nu-joOfDRs0cQA-1; Mon, 16 Nov 2020 10:39:26 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8D6CE18CB726; Mon, 16 Nov 2020 15:39:20 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6C3446EF65; Mon, 16 Nov 2020 15:39:20 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 3B46C5812A; Mon, 16 Nov 2020 15:39:20 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0AGFd4kg022522 for ; Mon, 16 Nov 2020 10:39:04 -0500 Received: by smtp.corp.redhat.com (Postfix) id F3AFF6EF55; Mon, 16 Nov 2020 15:39:03 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.40.193.172]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6F59E6EF51 for ; Mon, 16 Nov 2020 15:39:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605541168; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=DgqvtvUvplWI/+I85QlPp+b1F5wTTyRGXMVHEh91e5Y=; b=BoOlWkVgNL3ohDkyr22h8WXYVjBh3kBf9ApCsqyrWAxO9BdjdxjTiYP2Cte27UkKKS2aP2 tKsyDLW+cHGAS8GDwWgQMUiD82r/B3bO4DV95q6llL6bOPiCzI3bgFh5i1k69MRvHTKuMX KglcG8z3PtRO5J6lVi/i/4uvWTYXBmg= X-MC-Unique: SAassQc3Nu-joOfDRs0cQA-1 From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH 01/11] domain_conf: remove unused rc variable Date: Mon, 16 Nov 2020 16:38:48 +0100 Message-Id: <23eeb4d06269d836f5ed018b20f3485d65191f2d.1605541084.git.phrdina@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Leftover after commit <479a8c1fa1e0f58d3165c0446cd1abd72160256e>. Signed-off-by: Pavel Hrdina Reviewed-by: Peter Krempa --- src/conf/domain_conf.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 9199771dc0..5c30227212 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -27074,7 +27074,6 @@ virDomainNetDefFormat(virBufferPtr buf, virBufferEscapeString(buf, "\n", virDomainNetGetModelString(def)); if (virDomainNetIsVirtioModel(def)) { - int rc =3D 0; g_autofree char *str =3D NULL; g_autofree char *gueststr =3D NULL; g_autofree char *hoststr =3D NULL; @@ -27099,9 +27098,6 @@ virDomainNetDefFormat(virBufferPtr buf, virBufferAdjustIndent(buf, -2); virBufferAddLit(buf, "\n"); } - - if (rc < 0) - return -1; } } if (def->backend.tap || def->backend.vhost) { --=20 2.26.2