Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07004b12 authored by Akinobu Mita's avatar Akinobu Mita Committed by Ingo Molnar
Browse files

x86: remove unnecessary memset()



No need to clear the memory allocated by alloc_bootmem().
It is already filled with zero.

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent a2249cba
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2315,7 +2315,6 @@ static struct resource * __init ioapic_setup_resources(void)
	res = (void *)mem;

	if (mem != NULL) {
		memset(mem, 0, n);
		mem += sizeof(struct resource) * nr_ioapics;

		for (i = 0; i < nr_ioapics; i++) {