summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-11-17 15:29:57 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-11-17 16:10:03 -0800
commiteecd7f4f5b9c2021dbde0a361b365f5970db52aa (patch)
treec91888b094d7746f5581319ed29d1fe8b159736b /fs
parent15ec37185ec66b8e199188bf8df3e7baf50ef77d (diff)
downloadop-kernel-dev-eecd7f4f5b9c2021dbde0a361b365f5970db52aa.zip
op-kernel-dev-eecd7f4f5b9c2021dbde0a361b365f5970db52aa.tar.gz
fat: remove redundant assignment of 0 to slots
The variable slots is being assigned a value of zero that is never read, slots is being updated again a few lines later. Remove this redundant assignment. Cleans clang warning: Value stored to 'slots' is never read Link: http://lkml.kernel.org/r/20171017140258.22536-1-colin.king@canonical.com Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/fat/dir.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/fat/dir.c b/fs/fat/dir.c
index 81cecbe..b833ffe 100644
--- a/fs/fat/dir.c
+++ b/fs/fat/dir.c
@@ -291,7 +291,6 @@ static int fat_parse_long(struct inode *dir, loff_t *pos,
}
}
parse_long:
- slots = 0;
ds = (struct msdos_dir_slot *)*de;
id = ds->id;
if (!(id & 0x40))
OpenPOWER on IntegriCloud