diff mbox

[1/2] mtd/ftl: drop the useless VirtualPageMap in partition_t

Message ID 1402905157-10330-2-git-send-email-haokexin@gmail.com
State Accepted
Commit da90c4ecbc680881741b51c78a51a3b52d142116
Headers show

Commit Message

Kevin Hao June 16, 2014, 7:52 a.m. UTC
This is not used by any code now. Just drop it.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
---
 drivers/mtd/ftl.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

Brian Norris July 3, 2014, 12:27 a.m. UTC | #1
On Mon, Jun 16, 2014 at 03:52:36PM +0800, Kevin Hao wrote:
> This is not used by any code now. Just drop it.
> 
> Signed-off-by: Kevin Hao <haokexin@gmail.com>

Pushed this one to l2-mtd.git. Thanks!

Brian
diff mbox

Patch

diff --git a/drivers/mtd/ftl.c b/drivers/mtd/ftl.c
index 19d637266fcd..71f2782f03fc 100644
--- a/drivers/mtd/ftl.c
+++ b/drivers/mtd/ftl.c
@@ -111,7 +111,6 @@  typedef struct partition_t {
     struct mtd_blktrans_dev mbd;
     uint32_t		state;
     uint32_t		*VirtualBlockMap;
-    uint32_t		*VirtualPageMap;
     uint32_t		FreeTotal;
     struct eun_info_t {
 	uint32_t		Offset;
@@ -1035,8 +1034,6 @@  static void ftl_freepart(partition_t *part)
 {
 	vfree(part->VirtualBlockMap);
 	part->VirtualBlockMap = NULL;
-	kfree(part->VirtualPageMap);
-	part->VirtualPageMap = NULL;
 	kfree(part->EUNInfo);
 	part->EUNInfo = NULL;
 	kfree(part->XferInfo);