From patchwork Mon Feb 25 22:54:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Sandeen X-Patchwork-Id: 2182041 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 84E673FCA4 for ; Mon, 25 Feb 2013 21:55:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759385Ab3BYVzQ (ORCPT ); Mon, 25 Feb 2013 16:55:16 -0500 Received: from nat-pool-rdu.redhat.com ([66.187.233.202]:53428 "EHLO bp-05.lab.msp.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752361Ab3BYVzP (ORCPT ); Mon, 25 Feb 2013 16:55:15 -0500 Received: by bp-05.lab.msp.redhat.com (Postfix, from userid 0) id 5E90C1E0A92; Mon, 25 Feb 2013 16:54:54 -0600 (CST) From: Eric Sandeen To: linux-btrfs@vger.kernel.org Cc: Eric Sandeen Subject: [PATCH 03/17] btrfs-progs: Remove write-only var fdres in cmd_dev_stats() Date: Mon, 25 Feb 2013 16:54:36 -0600 Message-Id: <1361832890-40921-4-git-send-email-sandeen@redhat.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1361832890-40921-1-git-send-email-sandeen@redhat.com> References: <1361832890-40921-1-git-send-email-sandeen@redhat.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org fdres is initialized to -1, then later tested, but never set. Just remove it. Signed-off-by: Eric Sandeen --- cmds-device.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/cmds-device.c b/cmds-device.c index 198ad68..58df6da 100644 --- a/cmds-device.c +++ b/cmds-device.c @@ -295,7 +295,6 @@ static int cmd_dev_stats(int argc, char **argv) int fdmnt; int i; char c; - int fdres = -1; int err = 0; __u64 flags = 0; @@ -390,8 +389,6 @@ static int cmd_dev_stats(int argc, char **argv) out: free(di_args); close(fdmnt); - if (fdres > -1) - close(fdres); return err; }