Skip to content

Commit 59577cc

Browse files
author
Hrvoje Cavrak
committed
Fix ramdisk mount bug.
1 parent b65e8eb commit 59577cc

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/ramdisk.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@ int32_t tud_msc_write10_cb(uint8_t lun, uint32_t lba, uint32_t offset, uint8_t *
6868
if (lba >= NUMBER_OF_BLOCKS)
6969
return -1;
7070

71-
/* Enforce block number size */
72-
if (uf2->blockNo > MAX_BLOCK_NO)
73-
return -1;
74-
7571
/* If we're not detecting UF2 magic constants, we have nothing to do... */
7672
if (uf2->magicStart0 != UF2_MAGIC_START0 || uf2->magicStart1 != UF2_MAGIC_START1 || uf2->magicEnd != UF2_MAGIC_END)
7773
return (int32_t)bufsize;

0 commit comments

Comments
 (0)