Staging: zram: Remove useless offset calculation in handle_uncompressed_page()
The offset of uncompressed page is always zero: handle_uncompressed_page() doesn't have to care about it. Signed-off-by: Jerome Marchand <jmarchan@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
67f72befc7
commit
6a587e835e
|
@ -194,8 +194,7 @@ static void handle_uncompressed_page(struct zram *zram,
|
|||
unsigned char *user_mem, *cmem;
|
||||
|
||||
user_mem = kmap_atomic(page, KM_USER0);
|
||||
cmem = kmap_atomic(zram->table[index].page, KM_USER1) +
|
||||
zram->table[index].offset;
|
||||
cmem = kmap_atomic(zram->table[index].page, KM_USER1);
|
||||
|
||||
memcpy(user_mem, cmem, PAGE_SIZE);
|
||||
kunmap_atomic(user_mem, KM_USER0);
|
||||
|
|
Loading…
Reference in New Issue