mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] pstore/ram: delete the redundant persistent_ram_zap call
@ 2015-06-09  9:59 Wang Long
  0 siblings, 0 replies; only message in thread
From: Wang Long @ 2015-06-09  9:59 UTC (permalink / raw)
  To: anton, ccross, keescook, tony.luck
  Cc: linux-kernel, long.wanglong, wanglong, peifeiyue

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-06-09 10:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-09  9:59 [PATCH] pstore/ram: delete the redundant persistent_ram_zap call Wang Long

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®