Commit 4dad18f4 authored by Alex Shi's avatar Alex Shi Committed by Linus Torvalds

fs/ntfs: remove unused variable attr_len

This variable isn't used anymore, remove it to skip W=1 warning:

  fs/ntfs/inode.c:2350:6: warning: variable `attr_len' set but not used [-Wunused-but-set-variable]

Link: https://lkml.kernel.org/r/4194376f-898b-b602-81c3-210567712092@linux.alibaba.comSigned-off-by: default avatarAlex Shi <alex.shi@linux.alibaba.com>
Acked-by: default avatarAnton Altaparmakov <anton@tuxera.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3f10c2fa
...@@ -2347,7 +2347,6 @@ int ntfs_truncate(struct inode *vi) ...@@ -2347,7 +2347,6 @@ int ntfs_truncate(struct inode *vi)
ATTR_RECORD *a; ATTR_RECORD *a;
const char *te = " Leaving file length out of sync with i_size."; const char *te = " Leaving file length out of sync with i_size.";
int err, mp_size, size_change, alloc_change; int err, mp_size, size_change, alloc_change;
u32 attr_len;
ntfs_debug("Entering for inode 0x%lx.", vi->i_ino); ntfs_debug("Entering for inode 0x%lx.", vi->i_ino);
BUG_ON(NInoAttr(ni)); BUG_ON(NInoAttr(ni));
...@@ -2721,7 +2720,6 @@ int ntfs_truncate(struct inode *vi) ...@@ -2721,7 +2720,6 @@ int ntfs_truncate(struct inode *vi)
* this cannot fail since we are making the attribute smaller thus by * this cannot fail since we are making the attribute smaller thus by
* definition there is enough space to do so. * definition there is enough space to do so.
*/ */
attr_len = le32_to_cpu(a->length);
err = ntfs_attr_record_resize(m, a, mp_size + err = ntfs_attr_record_resize(m, a, mp_size +
le16_to_cpu(a->data.non_resident.mapping_pairs_offset)); le16_to_cpu(a->data.non_resident.mapping_pairs_offset));
BUG_ON(err); BUG_ON(err);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment