Updates #2405. --- tools/cpu/nios2/memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/cpu/nios2/memory.c b/tools/cpu/nios2/memory.c index cd88b8b..9b56d64 100644 --- a/tools/cpu/nios2/memory.c +++ b/tools/cpu/nios2/memory.c @@ -20,6 +20,8 @@ memory_desc *find_memory(device_desc *devices) struct ptf_item pi; memory_desc *tmd, *memory; + memory = NULL; + /********************************************************/ /* Check which of the devices are memory, sort by size */ @@ -29,8 +31,6 @@ memory_desc *find_memory(device_desc *devices) struct ptf_item pi; device_desc *dd; - memory = NULL; - for(dd = devices; dd; dd=dd->next) { p = ptf_find(dd->ptf->sub, &pi, item, "Is_Memory_Device", "1"); -- 1.8.3.1 _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel