Commit a75fe48c authored by joyce.xue's avatar joyce.xue Committed by Linus Torvalds

ocfs2: remove unused variable uuid_net_key in ocfs2_initialize_super

Variable uuid_net_key in ocfs2_initialize_super() is not used.  Clean it
up.
Signed-off-by: default avatarjoyce.xue <xuejiufei@huawei.com>
Signed-off-by: default avatarJoseph Qi <joseph.qi@huawei.com>
Acked-by: default avatarMark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c18ceab0
...@@ -2072,7 +2072,6 @@ static int ocfs2_initialize_super(struct super_block *sb, ...@@ -2072,7 +2072,6 @@ static int ocfs2_initialize_super(struct super_block *sb,
struct ocfs2_dinode *di = (struct ocfs2_dinode *)bh->b_data; struct ocfs2_dinode *di = (struct ocfs2_dinode *)bh->b_data;
struct inode *inode = NULL; struct inode *inode = NULL;
struct ocfs2_journal *journal; struct ocfs2_journal *journal;
__le32 uuid_net_key;
struct ocfs2_super *osb; struct ocfs2_super *osb;
u64 total_blocks; u64 total_blocks;
...@@ -2306,8 +2305,6 @@ static int ocfs2_initialize_super(struct super_block *sb, ...@@ -2306,8 +2305,6 @@ static int ocfs2_initialize_super(struct super_block *sb,
goto bail; goto bail;
} }
memcpy(&uuid_net_key, di->id2.i_super.s_uuid, sizeof(uuid_net_key));
strncpy(osb->vol_label, di->id2.i_super.s_label, 63); strncpy(osb->vol_label, di->id2.i_super.s_label, 63);
osb->vol_label[63] = '\0'; osb->vol_label[63] = '\0';
osb->root_blkno = le64_to_cpu(di->id2.i_super.s_root_blkno); osb->root_blkno = le64_to_cpu(di->id2.i_super.s_root_blkno);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment