From: Zhang Yanfei Date: Fri, 17 May 2013 14:10:38 +0000 (+0800) Subject: mm/sparse: Remove unused ret in sparse_index_init X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~16315^2~24 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=9d1936cf86be8dc0cc27365bd8f1efdf23941961;p=mirror_ubuntu-focal-kernel.git mm/sparse: Remove unused ret in sparse_index_init The ret variable is not used in the function, so remove it and directly return 0 at the end of the function. Signed-off-by: Zhang Yanfei Signed-off-by: Jiri Kosina --- diff --git a/mm/sparse.c b/mm/sparse.c index 1c91f0d3f6ab..9ac2f743f723 100644 --- a/mm/sparse.c +++ b/mm/sparse.c @@ -79,7 +79,6 @@ static int __meminit sparse_index_init(unsigned long section_nr, int nid) { unsigned long root = SECTION_NR_TO_ROOT(section_nr); struct mem_section *section; - int ret = 0; if (mem_section[root]) return -EEXIST; @@ -90,7 +89,7 @@ static int __meminit sparse_index_init(unsigned long section_nr, int nid) mem_section[root] = section; - return ret; + return 0; } #else /* !SPARSEMEM_EXTREME */ static inline int sparse_index_init(unsigned long section_nr, int nid)