Index: uspace/srv/fs/exfat/exfat_bitmap.c
===================================================================
--- uspace/srv/fs/exfat/exfat_bitmap.c	(revision b28900578e101555c71426b9df5df8967077ff81)
+++ uspace/srv/fs/exfat/exfat_bitmap.c	(revision e0d98b28a0e0aacac781d5016c0a045b0a2558df)
@@ -202,18 +202,14 @@
 
 	while (startc < DATA_CNT(bs)+2) {
-		if (bitmap_is_free(bs, devmap_handle, startc) == EOK) {
-			endc = startc+1;
-			while (bitmap_is_free(bs, devmap_handle, endc) == EOK) {
-				if ((endc - startc)+1 == count){
-					*firstc = startc;
-					return bitmap_set_clusters(bs, devmap_handle, startc, count);
-				}
-				else
-					endc++;
+		endc = startc;
+		while (bitmap_is_free(bs, devmap_handle, endc) == EOK) {
+			if ((endc - startc)+1 == count){
+				*firstc = startc;
+				return bitmap_set_clusters(bs, devmap_handle, startc, count);
 			}
-			startc = endc+1;
-		} 
-		else
-			startc++;
+			else
+				endc++;
+		}
+		startc = endc+1;
 	}
 	return ENOSPC;
