mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Wang Long <long.wanglong@huawei.com>
To: <anton@enomsg.org>, <ccross@android.com>, <keescook@chromium.org>,
	<tony.luck@intel.com>
Cc: <linux-kernel@vger.kernel.org>, <long.wanglong@huawei.com>,
	<wanglong@laoqinren.net>, <peifeiyue@huawei.com>
Subject: [PATCH] pstore/ram: delete the redundant persistent_ram_zap call
Date: Tue, 9 Jun 2015 09:59:45 +0000	[thread overview]
Message-ID: <1433843985-34791-1-git-send-email-long.wanglong@huawei.com> (raw)

In ramoops_init_prz function, we have already call
persistent_ram_zap in persistent_ram_new, so just
delete it.

Signed-off-by: Wang Long <long.wanglong@huawei.com>
---
 fs/pstore/ram.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
index 44a549b..fc8db9d 100644
--- a/fs/pstore/ram.c
+++ b/fs/pstore/ram.c
@@ -437,8 +437,6 @@ static int ramoops_init_prz(struct device *dev, struct ramoops_context *cxt,
 		return err;
 	}
 
-	persistent_ram_zap(*prz);
-
 	*paddr += sz;
 
 	return 0;
-- 
1.8.3.4


                 reply	other threads:[~2015-06-09 10:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1433843985-34791-1-git-send-email-long.wanglong@huawei.com \
    --to=long.wanglong@huawei.com \
    --cc=anton@enomsg.org \
    --cc=ccross@android.com \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peifeiyue@huawei.com \
    --cc=tony.luck@intel.com \
    --cc=wanglong@laoqinren.net \
    /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

all inboxes | Powered by JetHome®