Skip to content

Commit

Permalink
jfs: remove redundant initialization to pointer ip
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ColinIanKing authored and kleikamp committed Aug 29, 2023
1 parent 6e2bda2 commit 87098a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/jfs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ static int jfs_symlink(struct mnt_idmap *idmap, struct inode *dip,
struct component_name dname;
u32 ssize; /* source pathname size */
struct btstack btstack;
struct inode *ip = d_inode(dentry);
struct inode *ip;
s64 xlen = 0;
int bmask = 0, xsize;
s64 xaddr;
Expand Down

0 comments on commit 87098a0

Please sign in to comment.