[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1340249565-29404-2-git-send-email-marcos.souza.org@gmail.com>
Date: Thu, 21 Jun 2012 00:32:44 -0300
From: Marcos Paulo de Souza <marcos.souza.org@...il.com>
To: gregkh@...uxfoundation.org
Cc: devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
linux-mm-cc@...top.org, ngupta@...are.org,
Marcos Paulo de Souza <marcos.souza.org@...il.com>
Subject: [PATCH 1/2] staging: zram: Remove some dead code
This patch removes code that is never executed by zram.
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@...il.com>
---
drivers/staging/zram/zram_drv.c | 9 ---------
drivers/staging/zram/zram_drv.h | 3 ---
2 files changed, 12 deletions(-)
diff --git a/drivers/staging/zram/zram_drv.c b/drivers/staging/zram/zram_drv.c
index 685d612..5216ee1 100644
--- a/drivers/staging/zram/zram_drv.c
+++ b/drivers/staging/zram/zram_drv.c
@@ -415,15 +415,6 @@ static int zram_bvec_write(struct zram *zram, struct bio_vec *bvec, u32 index,
cmem = zs_map_object(zram->mem_pool, handle);
memstore:
-#if 0
- /* Back-reference needed for memory defragmentation */
- if (!zram_test_flag(zram, index, ZRAM_UNCOMPRESSED)) {
- zheader = (struct zobj_header *)cmem;
- zheader->table_idx = index;
- cmem += sizeof(*zheader);
- }
-#endif
-
memcpy(cmem, src, clen);
if (unlikely(zram_test_flag(zram, index, ZRAM_UNCOMPRESSED))) {
diff --git a/drivers/staging/zram/zram_drv.h b/drivers/staging/zram/zram_drv.h
index fbe8ac9..fe3f8fe 100644
--- a/drivers/staging/zram/zram_drv.h
+++ b/drivers/staging/zram/zram_drv.h
@@ -33,9 +33,6 @@ static const unsigned max_num_devices = 32;
* object. This is required to support memory defragmentation.
*/
struct zobj_header {
-#if 0
- u32 table_idx;
-#endif
};
/*-- Configurable parameters */
--
1.7.10.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists