From: Balaji Rao <balajirrao@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: [PATCH] Remove unused variable in fixup_tree_root_location
Date: Sun, 13 Jul 2008 23:02:15 +0530 [thread overview]
Message-ID: <200807132302.15944.balajirrao@gmail.com> (raw)
Remove a unused variable 'path' in fixup_tree_root_location.
Signed-off-by: Balaji Rao <balajirrao@gmail.com>
diff -r 3f0eee804974 inode.c
--- a/inode.c Thu Jun 26 10:34:20 2008 -0400
+++ b/inode.c Sun Jul 13 21:30:47 2008 +0530
@@ -1365,16 +1365,12 @@
struct btrfs_root **sub_root,
struct dentry *dentry)
{
- struct btrfs_path *path;
struct btrfs_root_item *ri;
if (btrfs_key_type(location) != BTRFS_ROOT_ITEM_KEY)
return 0;
if (location->objectid == BTRFS_ROOT_TREE_OBJECTID)
return 0;
-
- path = btrfs_alloc_path();
- BUG_ON(!path);
*sub_root = btrfs_read_fs_root(root->fs_info, location,
dentry->d_name.name,
@@ -1387,7 +1383,6 @@
btrfs_set_key_type(location, BTRFS_INODE_ITEM_KEY);
location->offset = 0;
- btrfs_free_path(path);
return 0;
}
--
Warm Regards,
Balaji Rao
reply other threads:[~2008-07-13 17:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200807132302.15944.balajirrao@gmail.com \
--to=balajirrao@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox