comparison tools/objlink.c @ 2414:69a5af2eb1ea

Remove useless dmMemset().
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 13 Jan 2020 23:27:01 +0200
parents 203b0fbb05d3
children 14ed64742010
comparison
equal deleted inserted replaced
2413:902cc22018a1 2414:69a5af2eb1ea
845 dmMsg(1, "Initializing memory with "); 845 dmMsg(1, "Initializing memory with ");
846 846
847 if (optInitValueType == 1 || optInitValue <= 0xff) 847 if (optInitValueType == 1 || optInitValue <= 0xff)
848 { 848 {
849 dmPrint(1, "BYTE 0x%.2x\n", optInitValue); 849 dmPrint(1, "BYTE 0x%.2x\n", optInitValue);
850 dmMemset(memory, optInitValue, memModel->size); 850 memset(memory, optInitValue, memModel->size);
851 } 851 }
852 else 852 else
853 if (optInitValueType == 2 || optInitValue <= 0xffff) 853 if (optInitValueType == 2 || optInitValue <= 0xffff)
854 { 854 {
855 uint16_t *mp = (uint16_t *) memory; 855 uint16_t *mp = (uint16_t *) memory;