ocfs2: fix a redundant re-initialization
PATCH 11/126 ocfs2: fix a redundant re-initialization
From: Eric Ren <[email protected]>
Subject: ocfs2: fix a redundant re-initialization
Obviously, memset() has zeroed the whole struct locking_max_version. So, it's no need to zero its two fields individually.
Signed-off-by Eric Ren <[email protected]>
Reviewed-by Joseph Qi <[email protected]>
Reviewed-by Gang He <[email protected]>
Cc Mark Fasheh <[email protected]>
Cc Joel Becker <[email protected]>
Cc Junxiao Bi <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
fs/ocfs2/stackglue.c | 2 -- 1 file changed, 2 deletions(-)
fs/ocfs2/stackglue.c renamed from fs/ocfs2/stackglue.c~ocfs2-fix-a-redundant-re-initialization +0 -2
@@ -735,8 +735,6 @@ static void __exit ocfs2_stack_glue_exit {memset (&locking_max_version,0 ,sizeof (struct ocfs2_protocol_version )); - locking_max_version.pv_major =0 ; - locking_max_version.pv_minor =0 ;ocfs2_sysfs_exit ();if (ocfs2_table_header)unregister_sysctl_table (ocfs2_table_header);
_