lkml.org 
[lkml]   [2017]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] fat: remove redundant assignment of 0 to slots
Date
From: Colin Ian King <colin.king@canonical.com>

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

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
fs/fat/dir.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/fs/fat/dir.c b/fs/fat/dir.c
index 81cecbe6d7cf..b833ffeee1e1 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))
--
2.14.1
\
 
 \ /
  Last update: 2017-10-17 16:04    [W:0.089 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site