Received: from eggs.gnu.org ([140.186.70.92]:34718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIHWA-0000sn-DZ for qemu-devel@nongnu.org; Fri, 06 May 2011 05:40:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QIHW9-0007PA-Fy for qemu-devel@nongnu.org; Fri, 06 May 2011 05:40:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIHW9-0007P2-87 for qemu-devel@nongnu.org; Fri, 06 May 2011 05:40:13 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p469eCbi016415 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 6 May 2011 05:40:12 -0400 From: Jes.Sorensen@redhat.com Date: Fri, 6 May 2011 11:39:11 +0200 Message-Id: <1304674751-19111-3-git-send-email-Jes.Sorensen@redhat.com> In-Reply-To: <1304674751-19111-1-git-send-email-Jes.Sorensen@redhat.com> References: <1304674751-19111-1-git-send-email-Jes.Sorensen@redhat.com> Subject: [Qemu-devel] [PATCH 2/2] qemu-img.c: Remove superfluous parenthesis List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kwolf@redhat.com Cc: qemu-devel@nongnu.org, armbru@redhat.com From: Jes Sorensen Signed-off-by: Jes Sorensen --- qemu-img.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index e825123..1da5484 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -785,7 +785,7 @@ static int img_convert(int argc, char **argv) nb_sectors = total_sectors; local_progress = (float)100 / - (nb_sectors / MIN(nb_sectors, (cluster_sectors))); + (nb_sectors / MIN(nb_sectors, cluster_sectors)); for(;;) { int64_t bs_num; @@ -856,7 +856,7 @@ static int img_convert(int argc, char **argv) sector_num = 0; // total number of sectors converted so far nb_sectors = total_sectors - sector_num; local_progress = (float)100 / - (nb_sectors / MIN(nb_sectors, (IO_BUF_SIZE / 512))); + (nb_sectors / MIN(nb_sectors, IO_BUF_SIZE / 512)); for(;;) { nb_sectors = total_sectors - sector_num; @@ -1331,7 +1331,7 @@ static int img_rebase(int argc, char **argv) bdrv_get_geometry(bs, &num_sectors); local_progress = (float)100 / - (num_sectors / MIN(num_sectors, (IO_BUF_SIZE / 512))); + (num_sectors / MIN(num_sectors, IO_BUF_SIZE / 512)); for (sector = 0; sector < num_sectors; sector += n) { /* How many sectors can we handle with the next read? */ -- 1.7.4.4