Skip to contentSkip to conversation

ocfs2: remove unneeded goto in ocfs2_reserve_cluster_bitmap_bits()

PATCH New [email protected] 1 participant 1 message Nov 16, 2017 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 12/131 ocfs2: remove unneeded goto in ocfs2_reserve_cluster_bitmap_bits()

From: Guozhonghua <[email protected]>
Subject: ocfs2: remove unneeded goto in ocfs2_reserve_cluster_bitmap_bits()

---

 fs/ocfs2/suballoc.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
fs/ocfs2/suballoc.c renamed from fs/ocfs2/suballoc.c~ocfs2-the-goto-is-not-useful-in-the-function-ocfs2_reserve_cluster_bitmap_bits-so-remove-it +1 -4
diff -puN fs/ocfs2/suballoc.c~ocfs2-the-goto-is-not-useful-in-the-function-ocfs2_reserve_cluster_bitmap_bits-so-remove-it fs/ocfs2/suballoc.c
@@ -1147,12 +1147,9 @@ int ocfs2_reserve_cluster_bitmap_bits(st
 					     GLOBAL_BITMAP_SYSTEM_INODE,
 					     OCFS2_INVALID_SLOT, NULL,
 					     ALLOC_NEW_GROUP);
-	if (status < 0 && status != -ENOSPC) {
+	if (status < 0 && status != -ENOSPC)
 		mlog_errno(status);
-		goto bail;
-	}
 
-bail:
 	return status;
 }
 

_