mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-06 05:13:18 +00:00
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>
This commit is contained in:
parent
2c35169572
commit
6f0b22760b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user