summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHui Zhu <zhuhui@xiaomi.com>2015-11-06 16:29:35 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-06 17:50:42 -0800
commit6f0b22760b7d8317569252cc7c36cbed22ebe401 (patch)
tree5289bf6019673c3c019e8ce670663db065fa3add
parent2c35169572b84897b43e6f3e9667fd1904451f34 (diff)
mm/zsmalloc.c: remove useless line in obj_free()
Signed-off-by: Hui Zhu <zhuhui@xiaomi.com> Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Cc: Minchan Kim <minchan@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--mm/zsmalloc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index fd0593e39bb4..a8ff24a29693 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -1429,8 +1429,6 @@ static void obj_free(struct zs_pool *pool, struct size_class *class,
struct page *first_page, *f_page;
unsigned long f_objidx, f_offset;
void *vaddr;
- int class_idx;
- enum fullness_group fullness;
BUG_ON(!obj);
@@ -1438,7 +1436,6 @@ static void obj_free(struct zs_pool *pool, struct size_class *class,
obj_to_location(obj, &f_page, &f_objidx);
first_page = get_first_page(f_page);
- get_zspage_mapping(first_page, &class_idx, &fullness);
f_offset = obj_idx_to_offset(f_page, f_objidx, class->size);
vaddr = kmap_atomic(f_page);