pstore/ram: delete the redundant persistent_ram_zap call
PATCH 1/1 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 <[email protected]>
--- fs/pstore/ram.c | 2 -- 1 file changed, 2 deletions(-)
fs/pstore/ram.c +0 -2
@@ -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 ;
Signature · 1 line
1.8.3.4