btrfs_insert_root is just a wrapper for btrfs_insert_item. Just return
 the error directly.

Signed-off-by: Jeff Mahoney <je...@suse.com>
---
 fs/btrfs/root-tree.c |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

--- a/fs/btrfs/root-tree.c
+++ b/fs/btrfs/root-tree.c
@@ -116,13 +116,10 @@ out:
        return ret;
 }
 
-int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root
-                     *root, struct btrfs_key *key, struct btrfs_root_item
-                     *item)
+int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root 
*root,
+                     struct btrfs_key *key, struct btrfs_root_item *item)
 {
-       int ret;
-       ret = btrfs_insert_item(trans, root, key, item, sizeof(*item));
-       return ret;
+       return btrfs_insert_item(trans, root, key, item, sizeof(*item));
 }
 
 /*



--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to