[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1433843985-34791-1-git-send-email-long.wanglong@huawei.com>
Date: Tue, 9 Jun 2015 09:59:45 +0000
From: Wang Long <long.wanglong@...wei.com>
To: <anton@...msg.org>, <ccross@...roid.com>, <keescook@...omium.org>,
<tony.luck@...el.com>
CC: <linux-kernel@...r.kernel.org>, <long.wanglong@...wei.com>,
<wanglong@...qinren.net>, <peifeiyue@...wei.com>
Subject: [PATCH] pstore/ram: delete the redundant persistent_ram_zap call
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@...wei.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists