* [Ocfs2-devel] [PATCH] ocfs2: remove unused variable uuid_net_key in ocfs2_initialize_super
@ 2014-02-14 2:50 Joseph Qi
0 siblings, 0 replies; only message in thread
From: Joseph Qi @ 2014-02-14 2:50 UTC (permalink / raw)
To: ocfs2-devel
From: joyce.xue <xuejiufei@huawei.com>
Variable uuid_net_key in ocfs2_initialize_super() is not used. Clean
it up.
Signed-off-by: joyce.xue <xuejiufei@huawei.com>
Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
---
fs/ocfs2/super.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c
index 49d84f8..4b17054 100644
--- a/fs/ocfs2/super.c
+++ b/fs/ocfs2/super.c
@@ -2077,7 +2077,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;
@@ -2311,8 +2310,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);
-- 1.8.4.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-02-14 2:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-14 2:50 [Ocfs2-devel] [PATCH] ocfs2: remove unused variable uuid_net_key in ocfs2_initialize_super Joseph Qi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.