diff options
author | Zhang Yanfei <zhangyanfei@cn.fujitsu.com> | 2013-05-17 22:10:38 +0800 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-05-28 12:02:13 +0200 |
commit | 9d1936cf86be8dc0cc27365bd8f1efdf23941961 (patch) | |
tree | 4d25dd012f0ea3470742638dc972c852e9aa28cd /mm/sparse.c | |
parent | c2b3ebd0d21a10c7c5c44f4f3bd55d0065a86798 (diff) | |
download | op-kernel-dev-9d1936cf86be8dc0cc27365bd8f1efdf23941961.zip op-kernel-dev-9d1936cf86be8dc0cc27365bd8f1efdf23941961.tar.gz |
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 <zhangyanfei@cn.fujitsu.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'mm/sparse.c')
-rw-r--r-- | mm/sparse.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/sparse.c b/mm/sparse.c index 1c91f0d3..9ac2f74 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) |