Index: uspace/srv/fs/fat/fat_dentry.c
===================================================================
--- uspace/srv/fs/fat/fat_dentry.c	(revision 980311e2f77982344ba9fdf128d259dd42acc99c)
+++ uspace/srv/fs/fat/fat_dentry.c	(revision 898e84788b1d147ab48122cb197b9910af5994b2)
@@ -221,8 +221,9 @@
 uint8_t fat_dentry_chksum(uint8_t *name)
 {
-	uint8_t i, sum=0;
-	for (i=0; i<(FAT_NAME_LEN+FAT_EXT_LEN); i++) {
+	uint8_t i, sum = 0;
+
+	for (i = 0; i < (FAT_NAME_LEN + FAT_EXT_LEN); i++)
 		sum = ((sum & 1) ? 0x80 : 0) + (sum >> 1) + name[i];
-	}
+
 	return sum;
 }
@@ -269,5 +270,5 @@
 {
 	int i;
-	for (i=FAT_LFN_PART3_SIZE-1; i>=0 && *offset>0; i--) {
+	for (i = FAT_LFN_PART3_SIZE - 1; i >= 0 && *offset > 0; i--) {
 		if (d->lfn.part3[i] == 0 || d->lfn.part3[i] == FAT_LFN_PAD)
 			continue;
@@ -275,5 +276,5 @@
 		dst[(*offset)] = uint16_t_le2host(d->lfn.part3[i]);
 	}
-	for (i=FAT_LFN_PART2_SIZE-1; i>=0 && *offset>0; i--) {
+	for (i = FAT_LFN_PART2_SIZE - 1; i >= 0 && *offset > 0; i--) {
 		if (d->lfn.part2[i] == 0 || d->lfn.part2[i] == FAT_LFN_PAD)
 			continue;
@@ -281,5 +282,5 @@
 		dst[(*offset)] = uint16_t_le2host(d->lfn.part2[i]);
 	}
-	for (i=FAT_LFN_PART1_SIZE-1; i>=0 && *offset>0; i--) {
+	for (i = FAT_LFN_PART1_SIZE - 1; i >= 0 && *offset > 0; i--) {
 		if (d->lfn.part1[i] == 0 || d->lfn.part1[i] == FAT_LFN_PAD)
 			continue;
@@ -290,29 +291,27 @@
 }
 
-size_t fat_lfn_set_entry(const uint16_t *src, size_t *offset, size_t size, fat_dentry_t *d)
+size_t fat_lfn_set_entry(const uint16_t *src, size_t *offset, size_t size,
+    fat_dentry_t *d)
 {
 	size_t idx;
-	for (idx=0; idx < FAT_LFN_PART1_SIZE; idx++) {
+	for (idx = 0; idx < FAT_LFN_PART1_SIZE; idx++) {
 		if (*offset < size) {
 			d->lfn.part1[idx] = host2uint16_t_le(src[*offset]);
 			(*offset)++;
-		}
-		else
+		} else
 			d->lfn.part1[idx] = FAT_LFN_PAD;
 	}
-	for (idx=0; idx < FAT_LFN_PART2_SIZE; idx++) {
+	for (idx = 0; idx < FAT_LFN_PART2_SIZE; idx++) {
 		if (*offset < size) {
 			d->lfn.part2[idx] = host2uint16_t_le(src[*offset]);
 			(*offset)++;
-		}
-		else
+		} else
 			d->lfn.part2[idx] = FAT_LFN_PAD;
 	}
-	for (idx=0; idx < FAT_LFN_PART3_SIZE; idx++) {
+	for (idx = 0; idx < FAT_LFN_PART3_SIZE; idx++) {
 		if (*offset < size) {
 			d->lfn.part3[idx] = host2uint16_t_le(src[*offset]);
 			(*offset)++;
-		}
-		else
+		} else
 			d->lfn.part3[idx] = FAT_LFN_PAD;
 	}
@@ -339,6 +338,5 @@
 			else
 				*dst = pad;
-		}
-		else
+		} else
 			break;
 
