Re: [PATCH] mm: Remove 'return;' at the end of void cma_activate_area()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 19.11.24 12:59, winterver wrote:
From: Jiale Yang <295107659@xxxxxx>

Remove 'return;' at the end of void cma_activate_area(). It's a void
function, so an ending return statement is unnecessary.

Signed-off-by: Jiale Yang <295107659@xxxxxx>
---
  mm/cma.c | 1 -
  1 file changed, 1 deletion(-)

diff --git a/mm/cma.c b/mm/cma.c
index 2d9fae939..070399bce 100644
--- a/mm/cma.c
+++ b/mm/cma.c
@@ -135,7 +135,6 @@ static void __init cma_activate_area(struct cma *cma)
  	totalcma_pages -= cma->count;
  	cma->count = 0;
  	pr_err("CMA area %s could not be activated\n", cma->name);
-	return;
  }
static int __init cma_init_reserved_areas(void)

Reviewed-by: David Hildenbrand <david@xxxxxxxxxx>


--
Cheers,

David / dhildenb





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux