aboutsummaryrefslogtreecommitdiff
path: root/fs/ext2
diff options
context:
space:
mode:
authorColin Ian King2023-03-17 14:34:20 +0000
committerJan Kara2023-03-21 15:06:06 +0100
commitfae0a2b2077c30f567b6b32c2467e7dda8e1d270 (patch)
tree06298a3abdb113cd9f5da0928e2344f98ca188b5 /fs/ext2
parentc87d175d0ae715a1cdd9a315253f3fb410fb0421 (diff)
ext2: remove redundant assignment to pointer end
Pointer is assigned a value that is never read, the assignment is redundant and can be removed. Cleans up clang-scan warning: fs/ext2/xattr.c:555:3: warning: Value stored to 'end' is never read [deadcode.DeadStores] end = (char *)header + sb->s_blocksize; Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz> Message-Id: <20230317143420.419005-1-colin.i.king@gmail.com>
Diffstat (limited to 'fs/ext2')
-rw-r--r--fs/ext2/xattr.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ext2/xattr.c b/fs/ext2/xattr.c
index 641abfa4b718..d4015e675c24 100644
--- a/fs/ext2/xattr.c
+++ b/fs/ext2/xattr.c
@@ -553,7 +553,6 @@ bad_block:
error = -ENOMEM;
if (header == NULL)
goto cleanup;
- end = (char *)header + sb->s_blocksize;
header->h_magic = cpu_to_le32(EXT2_XATTR_MAGIC);
header->h_blocks = header->h_refcount = cpu_to_le32(1);
last = here = ENTRY(header+1);