Skip to contentSkip to conversation

btrfs: Simplify write_ctree_super()

PATCH In review Miao Xie 1 participant 1 message Mar 25, 2010 Btrfs file system

lore
Share & tools
lore

Miao Xie

author
#0 lore raw

PATCH 14/18 btrfs: Simplify write_ctree_super()

From: Zhao Lei <[email protected]>

Remove a useless local variant and return it directly.

---
 fs/btrfs/disk-io.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
fs/btrfs/disk-io.c +1 -4
index 79d9196..731270f 100644
@@ -2306,10 +2306,7 @@ int write_all_supers(struct btrfs_root *root, int max_mirrors)
 int write_ctree_super(struct btrfs_trans_handle *trans,
 		      struct btrfs_root *root, int max_mirrors)
 {
-	int ret;
-
-	ret = write_all_supers(root, max_mirrors);
-	return ret;
+	return write_all_supers(root, max_mirrors);
 }
 
 int btrfs_free_fs_root(struct btrfs_fs_info *fs_info, struct btrfs_root *root)
Signature · 1 line
1.6.5.2