Mercurial > flash_v2
changeset 1728:b16e2895566e
* src/synth.c (synth_flash_erase_block): Remove asserts which are
no longer true.
| author | asl |
|---|---|
| date | Tue, 14 Sep 2004 16:03:53 +0000 |
| parents | 41dd4286cbbd |
| children | e290a0372578 |
| files | packages/devs/flash/synthv2/current/ChangeLog packages/devs/flash/synthv2/current/src/synth.c |
| diffstat | 2 files changed, 5 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/devs/flash/synthv2/current/ChangeLog +++ b/packages/devs/flash/synthv2/current/ChangeLog @@ -1,3 +1,8 @@ +2004-09-14 Andrew Lunn <andrew.lunn@ascom.ch> + + * src/synth.c (synth_flash_erase_block): Remove asserts which are + no longer true. + 2004-09-09 Andrew Lunn <andrew.lunn@ascom.ch> * src/flash_synth.c: Allow the use of arbitary sized block.
--- a/packages/devs/flash/synthv2/current/src/synth.c +++ b/packages/devs/flash/synthv2/current/src/synth.c @@ -207,9 +207,6 @@ static int synth_flash_erase_block(struct cyg_flash_dev *dev, const cyg_flashaddr_t block_base) { -#ifdef CYGDBG_USE_ASSERTS - struct cyg_flash_synth_config *config = dev->config; -#endif struct cyg_flash_synth_priv *priv = dev->priv; int offset = (int)block_base; size_t remaining; @@ -225,11 +222,6 @@ synth_flash_erase_block(struct cyg_flash empty_inited = true; } - CYG_ASSERT(sizeof(empty) < config->block_size, - "Eckk! Can't work with such small blocks"); - CYG_ASSERT(config->boot_blocks && sizeof(empty) < config->boot_block_size, - "Eckk! Can't work with such small blocks"); - remaining = flash_block_size(dev, block_base); while (remaining) {
