diff --git a/fs/fat/dir.c b/fs/fat/dir.c
index 81cecbe6d7cf6b193a416df0c6d4b5585255ec56..b833ffeee1e1441546d9902d0c61728aae635479 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))