summaryrefslogtreecommitdiff
path: root/fs/jfs
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2023-08-18 18:02:10 +0300
committerDave Kleikamp <dave.kleikamp@oracle.com>2023-08-29 20:20:50 +0300
commit87098a0d9e42cba2ec49b56dfbf1e4944a6e7bb6 (patch)
tree4682ffab8031c8e0747ad652d5f8f8f8d9673b7f /fs/jfs
parent6e2bda2c192d0244b5a78b787ef20aa10cb319b7 (diff)
downloadlinux-87098a0d9e42cba2ec49b56dfbf1e4944a6e7bb6.tar.xz
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>
Diffstat (limited to 'fs/jfs')
-rw-r--r--fs/jfs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jfs/namei.c b/fs/jfs/namei.c
index 9b030297aa64..a61366146cbf 100644
--- a/fs/jfs/namei.c
+++ b/fs/jfs/namei.c
@@ -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;