btrfs: Simplify btrfs_insert_root
[deliverable/linux.git] / fs / btrfs / root-tree.c
index f4099904565a508807f9c43458a1cdab6200cc24..1fd93d63707fa586281930e62027be9bdb8c2837 100644 (file)
@@ -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));
 }
 
 /*
This page took 0.029411 seconds and 5 git commands to generate.