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

jfs: remove redundant initialization to pointer ip

The pointer ip is being initialized with a value that is never read, it
is being re-assigned later on. The assignment is redundant and can be
removed. Cleans up clang scan warning:

fs/jfs/namei.c:886:16: warning: Value stored to 'ip' during its
initialization is never read [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>

authored by

Colin Ian King and committed by
Dave Kleikamp
87098a0d 6e2bda2c

+1 -1
+1 -1
fs/jfs/namei.c
··· 883 883 struct component_name dname; 884 884 u32 ssize; /* source pathname size */ 885 885 struct btstack btstack; 886 - struct inode *ip = d_inode(dentry); 886 + struct inode *ip; 887 887 s64 xlen = 0; 888 888 int bmask = 0, xsize; 889 889 s64 xaddr;