From patchwork Mon Mar 11 11:23:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wayne Xia X-Patchwork-Id: 226527 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E4EAA2C02B2 for ; Mon, 11 Mar 2013 22:27:56 +1100 (EST) Received: from localhost ([::1]:34808 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UF0tX-00018U-1W for incoming@patchwork.ozlabs.org; Mon, 11 Mar 2013 07:27:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UF0rD-0006ZW-EF for qemu-devel@nongnu.org; Mon, 11 Mar 2013 07:25:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UF0rB-0001Uj-IB for qemu-devel@nongnu.org; Mon, 11 Mar 2013 07:25:31 -0400 Received: from e28smtp03.in.ibm.com ([122.248.162.3]:48982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UF0rA-0001UI-SL for qemu-devel@nongnu.org; Mon, 11 Mar 2013 07:25:29 -0400 Received: from /spool/local by e28smtp03.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 11 Mar 2013 16:52:26 +0530 Received: from d28dlp03.in.ibm.com (9.184.220.128) by e28smtp03.in.ibm.com (192.168.1.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 11 Mar 2013 16:52:22 +0530 Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58]) by d28dlp03.in.ibm.com (Postfix) with ESMTP id 57AC01258051 for ; Mon, 11 Mar 2013 16:56:21 +0530 (IST) Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r2BBPFIh27656248 for ; Mon, 11 Mar 2013 16:55:15 +0530 Received: from d28av02.in.ibm.com (loopback [127.0.0.1]) by d28av02.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r2BBPJEw024547 for ; Mon, 11 Mar 2013 22:25:19 +1100 Received: from RH63Wenchao (wenchaox.cn.ibm.com [9.115.122.175] (may be forged)) by d28av02.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id r2BBNRV7015564; Mon, 11 Mar 2013 22:25:17 +1100 From: Wenchao Xia To: qemu-devel@nongnu.org Date: Mon, 11 Mar 2013 19:23:05 +0800 Message-Id: <1363000996-13221-4-git-send-email-xiawenc@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1363000996-13221-1-git-send-email-xiawenc@linux.vnet.ibm.com> References: <1363000996-13221-1-git-send-email-xiawenc@linux.vnet.ibm.com> X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13031111-3864-0000-0000-000007308C1E X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 122.248.162.3 Cc: kwolf@redhat.com, stefanha@gmail.com, armbru@redhat.com, lcapitulino@redhat.com, pbonzini@redhat.com, Wenchao Xia Subject: [Qemu-devel] [PATCH V9 03/14] qemu-img: remove unused parameter in collect_image_info() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Parameter *fmt was not used, so remove it. Signed-off-by: Wenchao Xia Reviewed-by: Eric Blake --- qemu-img.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index 471de7d..f4e5d90 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -1640,8 +1640,7 @@ static void dump_json_image_info(ImageInfo *info) static void collect_image_info(BlockDriverState *bs, ImageInfo *info, - const char *filename, - const char *fmt) + const char *filename) { uint64_t total_sectors; char backing_filename[1024]; @@ -1815,7 +1814,7 @@ static ImageInfoList *collect_image_info_list(const char *filename, } info = g_new0(ImageInfo, 1); - collect_image_info(bs, info, filename, fmt); + collect_image_info(bs, info, filename); collect_snapshots(bs, info); elem = g_new0(ImageInfoList, 1);