Skip to contentSkip to conversation

powerpc/kexec: Remove stale comment from check_realloc_usable_mem()

PATCH New Thorsten Blum 1 participant 1 message Jul 26 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/kexec: Remove stale comment from check_realloc_usable_mem()

check_realloc_usable_mem() does not free the buffer if memory allocation fails - remove the misleading comment. The buffer is owned and freed by update_usable_mem_fdt().

---
 arch/powerpc/kexec/file_load_64.c | 2 --
 1 file changed, 2 deletions(-)
arch/powerpc/kexec/file_load_64.c +0 -2
index c3503d698428..6d0c818ac619 100644
@@ -69,8 +69,6 @@ int arch_check_excluded_range(struct kimage *image, unsigned long start,
  * @um_info:                  Usable memory buffer and ranges info.
  * @cnt:                      No. of entries to accommodate.
  *
- * Frees up the old buffer if memory reallocation fails.
- *
  * Returns buffer on success, NULL on error.
  */
 static __be64 *check_realloc_usable_mem(struct umem_info *um_info, int cnt)