Skip to content

Commit 01ac2b3

Browse files
committed
clean up
1 parent 79ae930 commit 01ac2b3

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/usb/uf2/ghostfat.c

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static FAT_BootBlock const BootBlock = {
128128
.SectorsPerFAT = SECTORS_PER_FAT,
129129
.SectorsPerTrack = 1,
130130
.Heads = 1,
131-
.PhysicalDriveNum = 0x80, // to match MediaDescriptor of 0xF8
131+
.PhysicalDriveNum = 0x80, // to match MediaDescriptor of 0xF8
132132
.ExtendedBootSig = 0x29,
133133
.VolumeSerialNumber = 0x00420042,
134134
.VolumeLabel = UF2_VOLUME_LABEL,
@@ -172,6 +172,7 @@ static uint32_t current_flash_size(void)
172172
result = FLASH_SIZE;
173173
}
174174
}
175+
175176
flash_sz = result; // presumes atomic 32-bit read/write and static result
176177
}
177178

@@ -180,13 +181,14 @@ static uint32_t current_flash_size(void)
180181

181182
void padded_memcpy (char *dst, char const *src, int len)
182183
{
183-
for (int i = 0; i < len; ++i) {
184-
if (*src)
185-
*dst = *src++;
186-
else
187-
*dst = ' ';
188-
dst++;
189-
}
184+
for ( int i = 0; i < len; ++i )
185+
{
186+
if ( *src )
187+
*dst = *src++;
188+
else
189+
*dst = ' ';
190+
dst++;
191+
}
190192
}
191193

192194

0 commit comments

Comments
 (0)