Skip to content

Commit fae0a2b

Browse files
ColinIanKingjankara
authored andcommitted
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>
1 parent c87d175 commit fae0a2b

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

fs/ext2/xattr.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,6 @@ ext2_xattr_set(struct inode *inode, int name_index, const char *name,
553553
error = -ENOMEM;
554554
if (header == NULL)
555555
goto cleanup;
556-
end = (char *)header + sb->s_blocksize;
557556
header->h_magic = cpu_to_le32(EXT2_XATTR_MAGIC);
558557
header->h_blocks = header->h_refcount = cpu_to_le32(1);
559558
last = here = ENTRY(header+1);

0 commit comments

Comments
 (0)