ocfs2_insert_extent(): remove dead code
PATCH 1/1 ocfs2_insert_extent(): remove dead code
This patch removes some now dead code.
Spotted by the Coverity checker.
Signed-off-by Adrian Bunk <[email protected]>
---
fs/ocfs2/alloc.c | 4 ---- 1 file changed, 4 deletions(-)
fs/ocfs2/alloc.c renamed from fs/ocfs2/alloc.c.old +0 -4
@@ -3500,7 +3500,6 @@ int ocfs2_insert_extent(struct ocfs2_sup {int status;struct buffer_head *last_eb_bh =NULL ; -struct buffer_head *bh =NULL ;struct ocfs2_insert_type insert = {0 , };struct ocfs2_extent_rec rec;
@@ -3552,9 +3551,6 @@ int ocfs2_insert_extent(struct ocfs2_supocfs2_extent_map_insert_rec (inode, &rec); bail: -if (bh) -brelse (bh); -if (last_eb_bh)brelse (last_eb_bh);
Quoted 1 line · Adrian Bunk
This patch removes some now dead code.
Yep - thanks Adrian.
--Mark
--
Mark Fasheh
Senior Software Developer, Oracle
[email protected]