Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

f2fs: remove redundant initialization of pointer 'p'

Pointer p is initialized with a value that is never read and is later
re-assigned a new value, hence the initialization is redundant and can
be removed.

Cleans up clang warning:
fs/f2fs/extent_cache.c:463:19: warning: Value stored to 'p' during
its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>

authored by

Colin Ian King and committed by
Jaegeuk Kim
8fe326cb 46706d59

+1 -1
+1 -1
fs/f2fs/extent_cache.c
··· 460 460 struct rb_node *insert_parent) 461 461 { 462 462 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); 463 - struct rb_node **p = &et->root.rb_node; 463 + struct rb_node **p; 464 464 struct rb_node *parent = NULL; 465 465 struct extent_node *en = NULL; 466 466