Skip to content

Commit

Permalink
ocfs2: remove unused variable uuid_net_key in ocfs2_initialize_super
Browse files Browse the repository at this point in the history
Variable uuid_net_key in ocfs2_initialize_super() is not used.  Clean it
up.

Signed-off-by: joyce.xue <[email protected]>
Signed-off-by: Joseph Qi <[email protected]>
Acked-by: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
xuejiufei authored and torvalds committed Apr 3, 2014
1 parent c18ceab commit a75fe48
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/ocfs2/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -2072,7 +2072,6 @@ static int ocfs2_initialize_super(struct super_block *sb,
struct ocfs2_dinode *di = (struct ocfs2_dinode *)bh->b_data;
struct inode *inode = NULL;
struct ocfs2_journal *journal;
__le32 uuid_net_key;
struct ocfs2_super *osb;
u64 total_blocks;

Expand Down Expand Up @@ -2306,8 +2305,6 @@ static int ocfs2_initialize_super(struct super_block *sb,
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);
osb->vol_label[63] = '\0';
osb->root_blkno = le64_to_cpu(di->id2.i_super.s_root_blkno);
Expand Down

0 comments on commit a75fe48

Please sign in to comment.