From patchwork Mon Oct 7 21:43:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zach Brown X-Patchwork-Id: 2999341 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5D452BF924 for ; Mon, 7 Oct 2013 21:43:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 92B7A201EF for ; Mon, 7 Oct 2013 21:43:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9D937201F9 for ; Mon, 7 Oct 2013 21:43:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753802Ab3JGVn2 (ORCPT ); Mon, 7 Oct 2013 17:43:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33797 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753636Ab3JGVnT (ORCPT ); Mon, 7 Oct 2013 17:43:19 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r97LhIKh003448 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 7 Oct 2013 17:43:18 -0400 Received: from lenny.home.zabbo.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r97LhC9V003268; Mon, 7 Oct 2013 17:43:18 -0400 From: Zach Brown To: linux-btrfs@vger.kernel.org, Eric Sandeen Subject: [PATCH 11/12] btrfs-progs: remove unused variables Date: Mon, 7 Oct 2013 14:43:04 -0700 Message-Id: <1381182185-10896-12-git-send-email-zab@redhat.com> In-Reply-To: <1381182185-10896-1-git-send-email-zab@redhat.com> References: <1381182185-10896-1-git-send-email-zab@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Presumably people missed these warnings because btrfs-fragments isn't built by default. Signed-off-by: Zach Brown --- btrfs-fragments.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/btrfs-fragments.c b/btrfs-fragments.c index cedbc57..160429a 100644 --- a/btrfs-fragments.c +++ b/btrfs-fragments.c @@ -191,7 +191,6 @@ list_fragments(int fd, u64 flags, char *dir) u64 bgused = 0; u64 saved_extent = 0; u64 saved_len = 0; - u64 saved_flags = 0; int saved_color = 0; u64 last_end = 0; u64 areas = 0; @@ -202,7 +201,6 @@ list_fragments(int fd, u64 flags, char *dir) gdImagePtr im = NULL; int black = 0; - int white = 0; int width = 800; snprintf(name, sizeof(name), "%s/index.html", dir); @@ -280,7 +278,6 @@ list_fragments(int fd, u64 flags, char *dir) im = gdImageCreate(width, (sh->offset / 4096 + 799) / width); - white = gdImageColorAllocate(im, 255, 255, 255); black = gdImageColorAllocate(im, 0, 0, 0); for (j = 0; j < ARRAY_SIZE(colors); ++j) @@ -308,13 +305,11 @@ list_fragments(int fd, u64 flags, char *dir) saved_len = 0; } if (im && sh->type == BTRFS_EXTENT_ITEM_KEY) { - u64 e_flags; int c; struct btrfs_extent_item *item; item = (struct btrfs_extent_item *) (args.buf + off); - e_flags = btrfs_stack_extent_flags(item); if (use_color) c = colors[get_color(item, sh->len)]; @@ -328,7 +323,6 @@ list_fragments(int fd, u64 flags, char *dir) if (sh->objectid == bgend) { saved_extent = sh->objectid; saved_len = sh->offset; - saved_flags = e_flags; saved_color = c; goto skip; }