Skip to content

Commit e551cc2

Browse files
LiaoYuanhong-vivokleikamp
authored andcommitted
JFS: Remove redundant 0 value initialization
The jfs_log struct is already zeroed by kzalloc(). It's redundant to initialize dummy_log->base to 0. Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com> Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
1 parent 69f7321 commit e551cc2

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

fs/jfs/jfs_logmgr.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,6 @@ static int open_dummy_log(struct super_block *sb)
11991199
init_waitqueue_head(&dummy_log->syncwait);
12001200
dummy_log->no_integrity = 1;
12011201
/* Make up some stuff */
1202-
dummy_log->base = 0;
12031202
dummy_log->size = 1024;
12041203
rc = lmLogInit(dummy_log);
12051204
if (rc) {

0 commit comments

Comments
 (0)