diff options
| -rw-r--r-- | fs/pstore/ram.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 96f7d32cd184..076e26fdc0c0 100644 --- a/fs/pstore/ram.c +++ b/fs/pstore/ram.c | |||
| @@ -128,7 +128,6 @@ ramoops_get_next_prz(struct persistent_ram_zone *przs[], int id, | |||
| 128 | struct pstore_record *record) | 128 | struct pstore_record *record) |
| 129 | { | 129 | { |
| 130 | struct persistent_ram_zone *prz; | 130 | struct persistent_ram_zone *prz; |
| 131 | bool update = (record->type == PSTORE_TYPE_DMESG); | ||
| 132 | 131 | ||
| 133 | /* Give up if we never existed or have hit the end. */ | 132 | /* Give up if we never existed or have hit the end. */ |
| 134 | if (!przs) | 133 | if (!przs) |
| @@ -139,7 +138,7 @@ ramoops_get_next_prz(struct persistent_ram_zone *przs[], int id, | |||
| 139 | return NULL; | 138 | return NULL; |
| 140 | 139 | ||
| 141 | /* Update old/shadowed buffer. */ | 140 | /* Update old/shadowed buffer. */ |
| 142 | if (update) | 141 | if (prz->type == PSTORE_TYPE_DMESG) |
| 143 | persistent_ram_save_old(prz); | 142 | persistent_ram_save_old(prz); |
| 144 | 143 | ||
| 145 | if (!persistent_ram_old_size(prz)) | 144 | if (!persistent_ram_old_size(prz)) |
