提交 eecd7f4f 编写于 作者: C Colin Ian King 提交者: Linus Torvalds

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.comSigned-off-by: NColin Ian King <colin.king@canonical.com>
Acked-by: NOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 15ec3718
...@@ -291,7 +291,6 @@ static int fat_parse_long(struct inode *dir, loff_t *pos, ...@@ -291,7 +291,6 @@ static int fat_parse_long(struct inode *dir, loff_t *pos,
} }
} }
parse_long: parse_long:
slots = 0;
ds = (struct msdos_dir_slot *)*de; ds = (struct msdos_dir_slot *)*de;
id = ds->id; id = ds->id;
if (!(id & 0x40)) if (!(id & 0x40))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册