diff options
author | zhengbin <zhengbin13@huawei.com> | 2019-09-23 18:33:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-09-24 18:54:07 -0400 |
commit | 225dcadf8ee869d4429373ef04fdce49ac3fc266 (patch) | |
tree | 1a6df1f25080c18f4a686bc692ac877d78ad65b4 | |
parent | bf5a52647963cd08b2e999f77b16739d6300ebce (diff) |
fs/ocfs2/namei.c: remove set but not used variables
Fixes gcc '-Wunused-but-set-variable' warning:
fs/ocfs2/namei.c: In function ocfs2_create_inode_in_orphan:
fs/ocfs2/namei.c:2503:23: warning: variable di set but not used [-Wunused-but-set-variable]
Link: http://lkml.kernel.org/r/1566522588-63786-2-git-send-email-joseph.qi@linux.alibaba.com
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Reported-by: Hulk Robot <hulkci@huawei.com>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Reviewed-by: Changwei Ge <chge@linux.alibaba.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Gang He <ghe@suse.com>
Cc: Jun Piao <piaojun@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/ocfs2/namei.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c index 6f8e1c4fdb9c..8ea51cf27b97 100644 --- a/fs/ocfs2/namei.c +++ b/fs/ocfs2/namei.c | |||
@@ -2486,7 +2486,6 @@ int ocfs2_create_inode_in_orphan(struct inode *dir, | |||
2486 | struct inode *inode = NULL; | 2486 | struct inode *inode = NULL; |
2487 | struct inode *orphan_dir = NULL; | 2487 | struct inode *orphan_dir = NULL; |
2488 | struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); | 2488 | struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); |
2489 | struct ocfs2_dinode *di = NULL; | ||
2490 | handle_t *handle = NULL; | 2489 | handle_t *handle = NULL; |
2491 | char orphan_name[OCFS2_ORPHAN_NAMELEN + 1]; | 2490 | char orphan_name[OCFS2_ORPHAN_NAMELEN + 1]; |
2492 | struct buffer_head *parent_di_bh = NULL; | 2491 | struct buffer_head *parent_di_bh = NULL; |
@@ -2552,7 +2551,6 @@ int ocfs2_create_inode_in_orphan(struct inode *dir, | |||
2552 | goto leave; | 2551 | goto leave; |
2553 | } | 2552 | } |
2554 | 2553 | ||
2555 | di = (struct ocfs2_dinode *)new_di_bh->b_data; | ||
2556 | status = ocfs2_orphan_add(osb, handle, inode, new_di_bh, orphan_name, | 2554 | status = ocfs2_orphan_add(osb, handle, inode, new_di_bh, orphan_name, |
2557 | &orphan_insert, orphan_dir, false); | 2555 | &orphan_insert, orphan_dir, false); |
2558 | if (status < 0) { | 2556 | if (status < 0) { |