diff options
author | Jerome Marchand <jmarchan@redhat.com> | 2011-06-10 15:28:46 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-07-05 10:07:13 -0700 |
commit | 6a587e835e3a8ea2fe9e8fd038553f2090666bd5 (patch) | |
tree | dc62a313bdcd8fa6ed77ce7d938877d749c0e8f5 /drivers/staging/zram | |
parent | 67f72befc7b7c5c9bd9fcdc2642b79180a9b9678 (diff) | |
download | blackbird-obmc-linux-6a587e835e3a8ea2fe9e8fd038553f2090666bd5.tar.gz blackbird-obmc-linux-6a587e835e3a8ea2fe9e8fd038553f2090666bd5.zip |
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>
Diffstat (limited to 'drivers/staging/zram')
-rw-r--r-- | drivers/staging/zram/zram_drv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/zram/zram_drv.c b/drivers/staging/zram/zram_drv.c index aab4ec482124..3305e1a4dc1c 100644 --- a/drivers/staging/zram/zram_drv.c +++ b/drivers/staging/zram/zram_drv.c @@ -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); |