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@gmail.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
parent
e4c4c9c15e
commit
da90c4ecbc
|
@ -111,7 +111,6 @@ typedef struct partition_t {
|
||||||
struct mtd_blktrans_dev mbd;
|
struct mtd_blktrans_dev mbd;
|
||||||
uint32_t state;
|
uint32_t state;
|
||||||
uint32_t *VirtualBlockMap;
|
uint32_t *VirtualBlockMap;
|
||||||
uint32_t *VirtualPageMap;
|
|
||||||
uint32_t FreeTotal;
|
uint32_t FreeTotal;
|
||||||
struct eun_info_t {
|
struct eun_info_t {
|
||||||
uint32_t Offset;
|
uint32_t Offset;
|
||||||
|
@ -1035,8 +1034,6 @@ static void ftl_freepart(partition_t *part)
|
||||||
{
|
{
|
||||||
vfree(part->VirtualBlockMap);
|
vfree(part->VirtualBlockMap);
|
||||||
part->VirtualBlockMap = NULL;
|
part->VirtualBlockMap = NULL;
|
||||||
kfree(part->VirtualPageMap);
|
|
||||||
part->VirtualPageMap = NULL;
|
|
||||||
kfree(part->EUNInfo);
|
kfree(part->EUNInfo);
|
||||||
part->EUNInfo = NULL;
|
part->EUNInfo = NULL;
|
||||||
kfree(part->XferInfo);
|
kfree(part->XferInfo);
|
||||||
|
|
Loading…
Reference in New Issue