ocfs2: fix a redundant re-initialization
authorEric Ren <zren@suse.com>
Tue, 26 Jul 2016 22:21:29 +0000 (15:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2016 23:19:19 +0000 (16:19 -0700)
Obviously, memset() has zeroed the whole struct locking_max_version.
So, it's no need to zero its two fields individually.

Link: http://lkml.kernel.org/r/1463970605-18354-1-git-send-email-zren@suse.com
Signed-off-by: Eric Ren <zren@suse.com>
Reviewed-by: Joseph Qi <joseph.qi@huawei.com>
Reviewed-by: Gang He <ghe@suse.com>
Cc: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/stackglue.c

index 13219ed73e1d6f188f4b237a56259ff05b09a0bd..52c07346bea3f8960399184c0e6aead7545a25f2 100644 (file)
@@ -735,8 +735,6 @@ static void __exit ocfs2_stack_glue_exit(void)
 {
        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);
This page took 0.025783 seconds and 5 git commands to generate.