From nobody Thu May 2 07:32:16 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1567159454; cv=none; d=zoho.com; s=zohoarc; b=Bkx7CuP3+JHlGOiHSlnsYxasqXiuaVHAZFyGAro9ClN5XVEAAgq+dqmGPpio7VUtU5CXRTPtzj/UOVw41xIMb3AAi1UvcGex+SJZ7od9mh3I/P3jvqxwwqTCnw5Lwf4fAtSycJ0h4yl8Rl2yTcDVWIkdWVJbFxGpWB4MrUm0ewI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1567159454; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=+SlK64+uwj+MK6dGevbzyn30J0s1HibbvJgl5XqZ/fk=; b=jqWh6rkIsjpBncDIIKWvNYGUN+rTHZ9NuAiIp2B26up0JA2VpIVxATDIxeoo4yDk0CsT6D6LPu6tAH74l49YbawiNoSUfy1/aG6nNyUTXhFV4+6L1REgvVIIqqAEEQx//WbHGZUIGcnz2EKp5qmZBAmFz8NfGVKl0e6atnDEn6c= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1567159454157656.4879497606495; Fri, 30 Aug 2019 03:04:14 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7982D315C015; Fri, 30 Aug 2019 10:04:12 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 022835D9D3; Fri, 30 Aug 2019 10:04:12 +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 E988B1806B00; Fri, 30 Aug 2019 10:04:10 +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 x7UA49Ir013675 for ; Fri, 30 Aug 2019 06:04:09 -0400 Received: by smtp.corp.redhat.com (Postfix) id 2D7CC6060D; Fri, 30 Aug 2019 10:04:09 +0000 (UTC) Received: from mx1.redhat.com (ext-mx15.extmail.prod.ext.phx2.redhat.com [10.5.110.44]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 287E160606 for ; Fri, 30 Aug 2019 10:04:06 +0000 (UTC) Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 446B4307F5E3 for ; Fri, 30 Aug 2019 10:04:06 +0000 (UTC) Received: by mail-qk1-f181.google.com with SMTP id m2so5578151qkd.10 for ; Fri, 30 Aug 2019 03:04:06 -0700 (PDT) Received: from rekt.ibmuc.com ([2804:431:c7c6:9589:1351:c7eb:87b:c9d5]) by smtp.gmail.com with ESMTPSA id z187sm2764259qke.99.2019.08.30.03.04.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Aug 2019 03:04:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zsueg437ZXV6fhF3DvEbUuQDhzguUrgLbD7/FYRs1DQ=; b=mMbsqy2eS+9K/+cgB0ThnSQn3IqRqJdPlMKeFejwLyUY6TYrIYJH8RnhG+JC0JACQF MBIta9LIdmEUQR9qVI00WPcD/ppw1DInw3mzHULMwyIWx1sizWcq4QPGnmYK5aR56JN9 ia/FfiSHSAyv8OrWF+ADNNBuWvcsWanojWhD1mf9HWvtBAcGpbf9dNwb2PVLDUWWnwOf 4+LpKayzwk80prGTRJrlie2sKllhivjpN/Y2Jgl8dLxAylLtl7E1m+7/gPbVrOUS1BLO W+ZwfN/Sy3wAjooU+Jv1uP/Kia4WcmFJV8kG6LcyC2dsoiSgx3Br7dzonZkk/sz2AK5r PClw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zsueg437ZXV6fhF3DvEbUuQDhzguUrgLbD7/FYRs1DQ=; b=ANi8i1FOyviVC+GoDaPGPUjs/RvEUPEYjLo3xDMNPjvlQ1rl7hui6DXLi18SMijEu3 WCna868BNUyAIs864HR9oplysFcYTxJsWy2DKB25F7Eint21x0JpukNp/C8qzXfaTlZX 1e1xZG1ixEs02WwI8ZTouyHGiSpWolVj6UtY3kyvZQREYrzLcb4GoxE9NB7SO08LJGdO L4zwCqwJ0FWQxIfaEtOmrJ7dXzfyXqWBXSZuzNA5uTDqNpr9nDAZByVo0SGk0Fm7jsdG faEjbPQPqQOPLvRFkm4M/OWXZ3sbdFGJGm7amI6uwAoCvsOo6/brH6yjYph8CSS2W8LA YEvA== X-Gm-Message-State: APjAAAU8aS4JvHZLRhTw33VP+y9QnR9RExPXt9+FC+WKw7hVe80igRD3 pk1RHwYmH+Hgt/Yk5M1PoAAr/28y X-Google-Smtp-Source: APXvYqyx6o1vHUM+WPwDvjxO4SJ0DY6czds0hGzxHaIK87XdMubIUf3McUVINywvK9xNHv/6+CqH5g== X-Received: by 2002:ae9:ec0d:: with SMTP id h13mr13062392qkg.407.1567159445403; Fri, 30 Aug 2019 03:04:05 -0700 (PDT) From: Daniel Henrique Barboza To: libvir-list@redhat.com Date: Fri, 30 Aug 2019 07:03:55 -0300 Message-Id: <20190830100355.12419-1-danielhb413@gmail.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Fri, 30 Aug 2019 10:04:06 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Fri, 30 Aug 2019 10:04:06 +0000 (UTC) for IP:'209.85.222.181' DOMAIN:'mail-qk1-f181.google.com' HELO:'mail-qk1-f181.google.com' FROM:'danielhb413@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.151 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS) 209.85.222.181 mail-qk1-f181.google.com 209.85.222.181 mail-qk1-f181.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.44 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Cc: Daniel Henrique Barboza Subject: [libvirt] [PATCH trivial] qemu_conf.c: removing unused virQEMUDriverConfigPtr variable 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: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Fri, 30 Aug 2019 10:04:13 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" 'virQEMUDriverConfigPtr cfg' is declared, initiated, but never used in virQEMUDriverCreateCapabilities(). Signed-off-by: Daniel Henrique Barboza Reviewed-by: Christophe de Dinechin Reviewed-by: Erik Skultety --- Accidental discovery while reading code. src/qemu/qemu_conf.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c index 89c183e46a..d771bb6916 100644 --- a/src/qemu/qemu_conf.c +++ b/src/qemu/qemu_conf.c @@ -1266,7 +1266,6 @@ virCapsPtr virQEMUDriverCreateCapabilities(virQEMUDri= verPtr driver) virSecurityManagerPtr *sec_managers =3D NULL; /* Security driver data */ const char *doi, *model, *lbl, *type; - virQEMUDriverConfigPtr cfg =3D virQEMUDriverGetConfig(driver); const int virtTypes[] =3D {VIR_DOMAIN_VIRT_KVM, VIR_DOMAIN_VIRT_QEMU,}; =20 @@ -1313,13 +1312,11 @@ virCapsPtr virQEMUDriverCreateCapabilities(virQEMUD= riverPtr driver) } VIR_FREE(sec_managers); =20 - virObjectUnref(cfg); return caps; =20 error: VIR_FREE(sec_managers); virObjectUnref(caps); - virObjectUnref(cfg); return NULL; } =20 --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list