Remove unneeded assert.
[bertos.git] / bertos / cpu / arm / drv / flash_lpc2.c
index 6a8cc69ba9b04d68acfaeade0d9990682b9d04a5..f25e7b92c756a8332c848b6ee8e822accf2fd8d8 100644 (file)
@@ -179,9 +179,6 @@ static uint32_t addr_to_sector(size_t addr)
 
 static size_t lpc2_flash_readDirect(struct KBlock *blk, block_idx_t idx, void *buf, size_t offset, size_t size)
 {
-       ASSERT(offset == 0);
-       ASSERT(size == blk->blk_size);
-
        memcpy(buf, (void *)(idx * blk->blk_size), size);
        return size;
 }