Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a587e83 authored by Jerome Marchand's avatar Jerome Marchand Committed by Greg Kroah-Hartman
Browse files

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: default avatarJerome Marchand <jmarchan@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 67f72bef
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -194,8 +194,7 @@ static void handle_uncompressed_page(struct zram *zram,
	unsigned char *user_mem, *cmem;
	unsigned char *user_mem, *cmem;


	user_mem = kmap_atomic(page, KM_USER0);
	user_mem = kmap_atomic(page, KM_USER0);
	cmem = kmap_atomic(zram->table[index].page, KM_USER1) +
	cmem = kmap_atomic(zram->table[index].page, KM_USER1);
			zram->table[index].offset;


	memcpy(user_mem, cmem, PAGE_SIZE);
	memcpy(user_mem, cmem, PAGE_SIZE);
	kunmap_atomic(user_mem, KM_USER0);
	kunmap_atomic(user_mem, KM_USER0);