Index: uspace/srv/fs/fat/fat_fat.c
===================================================================
--- uspace/srv/fs/fat/fat_fat.c	(revision 83d97120b56d68aab35d118da053c201063ad8ce)
+++ uspace/srv/fs/fat/fat_fat.c	(revision d1b625b9b6c203f527ff69cb073876601fef2b7f)
@@ -386,6 +386,6 @@
 	/* Mark all clusters in the chain as free in all copies of FAT. */
 	while (firstc < FAT_CLST_LAST1) {
+		assert(firstc >= FAT_CLST_FIRST && firstc < FAT_CLST_BAD);
 		nextc = fat_get_cluster(bs, dev_handle, firstc);
-		assert(nextc >= FAT_CLST_FIRST && nextc < FAT_CLST_BAD);
 		for (fatno = FAT1; fatno < bs->fatcnt; fatno++)
 			fat_set_cluster(bs, dev_handle, fatno, firstc,
