# HG changeset patch # User asl # Date 1095177833 0 # Node ID b16e2895566ef0a08e6daf1781422653a08bfae3 # Parent 41dd4286cbbd4ea6877f8a2e58110cf6dd5a57ce * src/synth.c (synth_flash_erase_block): Remove asserts which are no longer true. diff --git a/packages/devs/flash/synthv2/current/ChangeLog b/packages/devs/flash/synthv2/current/ChangeLog --- a/packages/devs/flash/synthv2/current/ChangeLog +++ b/packages/devs/flash/synthv2/current/ChangeLog @@ -1,3 +1,8 @@ +2004-09-14 Andrew Lunn + + * src/synth.c (synth_flash_erase_block): Remove asserts which are + no longer true. + 2004-09-09 Andrew Lunn * src/flash_synth.c: Allow the use of arbitary sized block. diff --git a/packages/devs/flash/synthv2/current/src/synth.c b/packages/devs/flash/synthv2/current/src/synth.c --- 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) {