From patchwork Thu Jan 31 00:54:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Sandeen X-Patchwork-Id: 2070161 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 1EA86DF2A1 for ; Thu, 31 Jan 2013 00:01:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753781Ab3AaABi (ORCPT ); Wed, 30 Jan 2013 19:01:38 -0500 Received: from nat-pool-rdu.redhat.com ([66.187.233.202]:51797 "EHLO bp-05.lab.msp.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752492Ab3AaABh (ORCPT ); Wed, 30 Jan 2013 19:01:37 -0500 X-Greylist: delayed 377 seconds by postgrey-1.27 at vger.kernel.org; Wed, 30 Jan 2013 19:01:37 EST Received: by bp-05.lab.msp.redhat.com (Postfix, from userid 0) id F1A251E075E; Wed, 30 Jan 2013 18:55:04 -0600 (CST) From: Eric Sandeen To: linux-btrfs@vger.kernel.org Cc: Eric Sandeen Subject: [PATCH 01/11] btrfs: remove unused fd in btrfs_ioctl_send() Date: Wed, 30 Jan 2013 18:54:52 -0600 Message-Id: <1359593702-53056-2-git-send-email-sandeen@redhat.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1359593702-53056-1-git-send-email-sandeen@redhat.com> References: <1359593702-53056-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 All we do is set it to NULL and test it :) Signed-off-by: Eric Sandeen --- fs/btrfs/send.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 321b7fb..614da0d 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -4536,7 +4536,6 @@ long btrfs_ioctl_send(struct file *mnt_file, void __user *arg_) struct btrfs_fs_info *fs_info; struct btrfs_ioctl_send_args *arg = NULL; struct btrfs_key key; - struct file *filp = NULL; struct send_ctx *sctx = NULL; u32 i; u64 *clone_sources_tmp = NULL; @@ -4673,8 +4672,6 @@ long btrfs_ioctl_send(struct file *mnt_file, void __user *arg_) goto out; out: - if (filp) - fput(filp); kfree(arg); vfree(clone_sources_tmp);