From nobody Sat May 18 17:15:59 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 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1531584899613613.4857964902466; Sat, 14 Jul 2018 09:14:59 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2E25AC057F9F; Sat, 14 Jul 2018 16:14:56 +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 5BA4B5C689; Sat, 14 Jul 2018 16:14:55 +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 8407118037ED; Sat, 14 Jul 2018 16:14:52 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w6EGEoX5011392 for ; Sat, 14 Jul 2018 12:14:50 -0400 Received: by smtp.corp.redhat.com (Postfix) id 1858D60F8A; Sat, 14 Jul 2018 16:14:50 +0000 (UTC) Received: from mx1.redhat.com (ext-mx14.extmail.prod.ext.phx2.redhat.com [10.5.110.43]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 10AD95FCA9 for ; Sat, 14 Jul 2018 16:14:48 +0000 (UTC) Received: from mail-ua0-f195.google.com (mail-ua0-f195.google.com [209.85.217.195]) (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 7DFFC308FB8C for ; Sat, 14 Jul 2018 16:14:37 +0000 (UTC) Received: by mail-ua0-f195.google.com with SMTP id x24-v6so22421727ual.10 for ; Sat, 14 Jul 2018 09:14:37 -0700 (PDT) Received: from localhost.localdomain ([187.104.182.64]) by smtp.gmail.com with ESMTPSA id s16-v6sm6461496uae.32.2018.07.14.09.14.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 Jul 2018 09:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=Wfeqr8+DRgNPNOabKthgcA+tp70RH48tUDqs6CwspI8=; b=gEApKwRH/Iwd48meYJX18BWtom2LYyCX7JXU3m4NCt9vgdzFbMnFepm635feuYI+BW WHKHk3LIAf4p1/AJ5oKy4vAkkjYhbvYlINYF7+syg51pHSAmYFb4T5P+W/XlqVt2nsKm PBmPdw/iagWNibntLBE5/c3SrTPdrw+bvm8pBxLSYEq3sNpEluVsdCYO8ZUUmZIKcT6b 9/d8LW9gNtDAvpgrnzzOMlTWnR1vj0rZTDSyMPFhmX9W3B+YLOvVJlvjoJT4UlcpJVuj 39I6js3bhRMKIfKbrZjtLj6pZGdYs3io2Qjg/Ms/YvQ5LIOdjFtuNTQWeOr6Y2ksNoof /QgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=Wfeqr8+DRgNPNOabKthgcA+tp70RH48tUDqs6CwspI8=; b=V9MxrciHEFoaTpMFIQFHmTeNdVEyx+q5scjqlL1Ti+K7n63KU5Rv0g+/6ZMrv0pNDJ A16bDK9MNKDtAWbctoPrYhtukJ2sqrU04v1ZWvnRrAwQa4VdjnkBQhglixueDP8OUSfE SBa5R8xX56ISVQAhLJs4WHRSb4Gj008DYsK6PP20deuvecuz+Kxhz9Ab5cGlQT95WiLn phYMpBuNOB3NqVDBp/IJCfA8d7nhgk0DkCFv6/cIqfa8TL8GUxpBkiEC4cwn5I7+fCm6 14Z/4mhuwI5hGYFkWAObUfKbFQawazVVroKKWC69/uESGyDQfY9E2BYE1kqFKe1hFTaT HSWA== X-Gm-Message-State: AOUpUlF9Fazg2O3MrrjnxQa/IpNzojcVNKK8B0mPCLU0aDgHQE7L3x8f KWKYfyz/Q3N29PaODghs9JB4zw== X-Google-Smtp-Source: AAOMgpejEfEx87v/6wKpHcvrKU348yZAbtfYT0fBiFoft05lEA2tUHlYn2Happ/2YOhFRPu+YfLdTw== X-Received: by 2002:ab0:534d:: with SMTP id y13-v6mr7160796uay.192.1531584876487; Sat, 14 Jul 2018 09:14:36 -0700 (PDT) From: Julio Faracco To: libvir-list@redhat.com Date: Sat, 14 Jul 2018 13:14:06 -0300 Message-Id: <20180714161406.6971-1-jcfaracco@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Sat, 14 Jul 2018 16:14:37 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Sat, 14 Jul 2018 16:14:37 +0000 (UTC) for IP:'209.85.217.195' DOMAIN:'mail-ua0-f195.google.com' HELO:'mail-ua0-f195.google.com' FROM:'jcfaracco@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.281 * (DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS, T_DKIM_INVALID) 209.85.217.195 mail-ua0-f195.google.com 209.85.217.195 mail-ua0-f195.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.43 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] util: remove unused variable inside virFileReadValueString(). 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: , MIME-Version: 1.0 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.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Sat, 14 Jul 2018 16:14:57 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" The commit 69b937f0358 introduced VIR_AUTOFREE and this macro removed VIR_FREE. This change showed that 'str' variable was not being used inside this method. This commit removes this unused variable. Signed-off-by: Julio Faracco Reviewed-by: Roman Bogorodskiy --- src/util/virfile.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/util/virfile.c b/src/util/virfile.c index 6b94885a87..1faeebbdb5 100644 --- a/src/util/virfile.c +++ b/src/util/virfile.c @@ -4228,7 +4228,6 @@ int virFileReadValueString(char **value, const char *format, ...) { int ret; - VIR_AUTOFREE(char *) str =3D NULL; VIR_AUTOFREE(char *) path =3D NULL; va_list ap; =20 --=20 2.17.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list