From: Colin Ian King Date: Fri, 17 Mar 2023 14:34:20 +0000 (+0000) Subject: ext2: remove redundant assignment to pointer end X-Git-Tag: v6.6.7~3009^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fae0a2b2077c30f567b6b32c2467e7dda8e1d270;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Jan Kara Message-Id: <20230317143420.419005-1-colin.i.king@gmail.com> --- diff --git a/fs/ext2/xattr.c b/fs/ext2/xattr.c index 641abfa4..d4015e6 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);