From: Kevin Hao <haokexin@gmail.com>
To: linux-mtd@lists.infradead.org
Cc: Brian Norris <computersforpeace@gmail.com>,
David Woodhouse <dwmw2@infradead.org>
Subject: [PATCH 1/2] mtd/ftl: drop the useless VirtualPageMap in partition_t
Date: Mon, 16 Jun 2014 15:52:36 +0800 [thread overview]
Message-ID: <1402905157-10330-2-git-send-email-haokexin@gmail.com> (raw)
In-Reply-To: <1402905157-10330-1-git-send-email-haokexin@gmail.com>
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(-)
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);
--
1.9.3
next prev parent reply other threads:[~2014-06-16 7:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-16 7:52 [PATCH 0/2] mtd/ftl: fix the double free of buffers Kevin Hao
2014-06-16 7:52 ` Kevin Hao [this message]
2014-07-03 0:27 ` [PATCH 1/2] mtd/ftl: drop the useless VirtualPageMap in partition_t Brian Norris
2014-06-16 7:52 ` [PATCH 2/2] mtd/ftl: fix the double free of the buffers allocated in build_maps() Kevin Hao
2014-07-03 2:35 ` [PATCH v2 " Kevin Hao
2014-07-15 1:44 ` Brian Norris
2014-07-03 0:37 ` [PATCH 0/2] mtd/ftl: fix the double free of buffers Brian Norris
2014-07-03 2:11 ` Kevin Hao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1402905157-10330-2-git-send-email-haokexin@gmail.com \
--to=haokexin@gmail.com \
--cc=computersforpeace@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox