From patchwork Mon Oct 7 21:49:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 175423 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp4845883ill; Mon, 7 Oct 2019 14:49:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpMG97kFa0Fve/BNj59GeG3PsGvI4ri6C41I7JM2SCbZAn4DMqyWkKDoRXK0rEi+Rp8Mt4 X-Received: by 2002:a6b:3a43:: with SMTP id h64mr24105879ioa.89.1570484985046; Mon, 07 Oct 2019 14:49:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570484985; cv=none; d=google.com; s=arc-20160816; b=Ux5h9hdlid6hnQPaj3JApvBIRQTkVSYjP2RAPIvk+jvadr4Wc20XM4tqqQCJo5nDMK /Rm89g+jkHGtrZ/QfYSwWVd8r6rQe+YsVCWR/ATcVUyz659fMgiG/GduEe2Fi2mVwH9A /1H27EEQig2iq47u/L4/chB34NRT7qzqCsSE4x17jmUZLf2dNkCph7lcu83OWY7rgqSd +ueHiPgbaupJTWCMJnu3Hkt8tHB5iGqtShNK0meSNa+JaXkFzKtXgQD4KCKZRylexLyX 0Vo9W5KZXB7NluEO6kBook1/BNyIWhe5WPs/nzIu4hIb8K3njKJHb3KY2/f0qv3BMdee 6Yvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :delivered-to; bh=ayS8Vwl+OPKTFfvVQYsBcpOmyBIl2+IE1swBiDhgXvM=; b=kjgHnBfJnVGGW9TO4izWSaov6a8pv/de/78i9QtPAHOPNrhHjOXOnKtZYAdBgj6zJI PNxQEfs9M97SDt3O3WO00ugfXcHz1Z2aXZ9SQHk3p1+S+fOP9Lz6WGEd2hqSFWO6I7p9 hHhwkiMo2z5QQM3sYFuJYb4cIjzTJxOdlxfo3mmgizYB8xlU5I/ckCc1mlIAY6lVTHGX 1mS/uzGFGAShVxuUQK3ojWhQOp76QD6xBT8pOpBmBTYcY0XE0xfZCEZjI3ocupPaXFmn EQyQuhiSJf1DyE1D2XVsnFr//lNDAF2ZHhljdvA6/MwMG+YOxZUBIhTrZl70R8cKyCky JWhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id m36si19549185jac.94.2019.10.07.14.49.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Oct 2019 14:49:45 -0700 (PDT) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B6892772CC; Mon, 7 Oct 2019 21:49:43 +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 94DE2100EBA5; Mon, 7 Oct 2019 21:49:43 +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 57D714EE6E; Mon, 7 Oct 2019 21:49:43 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x97LnPOE014555 for ; Mon, 7 Oct 2019 17:49:25 -0400 Received: by smtp.corp.redhat.com (Postfix) id 080145C219; Mon, 7 Oct 2019 21:49:25 +0000 (UTC) Delivered-To: libvir-list@redhat.com Received: from worklaptop.redhat.com (ovpn-123-156.rdu2.redhat.com [10.10.123.156]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9CE545C1D4; Mon, 7 Oct 2019 21:49:24 +0000 (UTC) From: Cole Robinson To: libvir-list@redhat.com Date: Mon, 7 Oct 2019 17:49:20 -0400 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 06/30] storagefile: Drop now unused isQCow2 argument 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.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 07 Oct 2019 21:49:44 +0000 (UTC) Signed-off-by: Cole Robinson --- src/util/virstoragefile.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) -- 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list Reviewed-by: Daniel Henrique Barboza diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c index 9bf4c1178b..14551af4d2 100644 --- a/src/util/virstoragefile.c +++ b/src/util/virstoragefile.c @@ -485,8 +485,7 @@ static int qcowXGetBackingStore(char **res, int *format, const char *buf, - size_t buf_size, - bool isQCow2 ATTRIBUTE_UNUSED) + size_t buf_size) { unsigned long long offset; unsigned int size; @@ -572,7 +571,7 @@ qcow1GetBackingStore(char **res, const char *buf, size_t buf_size) { - return qcowXGetBackingStore(res, format, buf, buf_size, false); + return qcowXGetBackingStore(res, format, buf, buf_size); } static int @@ -581,7 +580,7 @@ qcow2GetBackingStore(char **res, const char *buf, size_t buf_size) { - return qcowXGetBackingStore(res, format, buf, buf_size, true); + return qcowXGetBackingStore(res, format, buf, buf_size); }