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 @@ ext2_xattr_set(struct inode *inode, int name_index, const char *name, 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);