diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-10-26 18:02:45 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-10-26 19:25:18 -0400 |
commit | 2de24cb742d4f0c41358aa078bed7f089c827ac7 (patch) | |
tree | b3195749959855af97eab2e3c336726d78f20de1 | |
parent | 32c1b90dcd90c7f6343e1b328801f7be5f7da88d (diff) |
ocfs2: remove unused pointer 'eb'
Pointer 'eb' is being assigned but is never used hence it is
redundant and can be removed.
Cleans up clang warning:
warning: variable 'eb' set but not used [-Wunused-but-set-variable]
Link: http://lkml.kernel.org/r/20180828141907.10826-1-colin.king@canonical.com
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Joseph Qi <jiangqi903@gmail.com>
Cc: Changwei Ge <ge.changwei@h3c.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/ocfs2/alloc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c index a342f008e42f..d1cbb27808e2 100644 --- a/fs/ocfs2/alloc.c +++ b/fs/ocfs2/alloc.c | |||
@@ -5106,8 +5106,6 @@ int ocfs2_split_extent(handle_t *handle, | |||
5106 | * rightmost extent list. | 5106 | * rightmost extent list. |
5107 | */ | 5107 | */ |
5108 | if (path->p_tree_depth) { | 5108 | if (path->p_tree_depth) { |
5109 | struct ocfs2_extent_block *eb; | ||
5110 | |||
5111 | ret = ocfs2_read_extent_block(et->et_ci, | 5109 | ret = ocfs2_read_extent_block(et->et_ci, |
5112 | ocfs2_et_get_last_eb_blk(et), | 5110 | ocfs2_et_get_last_eb_blk(et), |
5113 | &last_eb_bh); | 5111 | &last_eb_bh); |
@@ -5115,8 +5113,6 @@ int ocfs2_split_extent(handle_t *handle, | |||
5115 | mlog_errno(ret); | 5113 | mlog_errno(ret); |
5116 | goto out; | 5114 | goto out; |
5117 | } | 5115 | } |
5118 | |||
5119 | eb = (struct ocfs2_extent_block *) last_eb_bh->b_data; | ||
5120 | } | 5116 | } |
5121 | 5117 | ||
5122 | if (rec->e_cpos == split_rec->e_cpos && | 5118 | if (rec->e_cpos == split_rec->e_cpos && |