mtd/ftl: drop the useless VirtualPageMap in partition_t

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Aug 8 09:59:01 PDT 2014


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=da90c4ecbc680881741b51c78a51a3b52d142116
Commit:     da90c4ecbc680881741b51c78a51a3b52d142116
Parent:     e4c4c9c15ebe8ec03b7f5bf36e079052cc88217c
Author:     Kevin Hao <haokexin at gmail.com>
AuthorDate: Mon Jun 16 15:52:36 2014 +0800
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Wed Jul 2 15:22:01 2014 -0700

    mtd/ftl: drop the useless VirtualPageMap in partition_t
    
    This is not used by any code now. Just drop it.
    
    Signed-off-by: Kevin Hao <haokexin at gmail.com>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/ftl.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/mtd/ftl.c b/drivers/mtd/ftl.c
index 19d6372..71f2782 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);



More information about the linux-mtd-cvs mailing list