[PATCH] pstore/ram: delete the redundant persistent_ram_zap call

From: Wang Long
Date: Tue Jun 09 2015 - 06:05:34 EST


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@xxxxxxxxxx>
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/