[PATCH] ramoops: Remove pmsg case for write with write_buf function
From: Joel Fernandes
Date: Wed Sep 28 2016 - 10:21:30 EST
From: Joel Fernandes <joelaf@xxxxxxxxxx>
PMSG now uses ramoops_pstore_write_buf_user instead of write_buf.
Remove the case where we check PSTORE_TYPE_PMSG case in write_buf.
Cc: Mark Salyzyn <salyzyn@xxxxxxxxxxx>
Cc: Kees Cook <keescook@xxxxxxxxxxxx>
Cc: Anton Vorontsov <anton@xxxxxxxxxx>
Cc: Colin Cross <ccross@xxxxxxxxxxx>
Cc: Tony Luck <tony.luck@xxxxxxxxx>
Signed-off-by: Joel Fernandes <joelaf@xxxxxxxxxx>
---
fs/pstore/ram.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
index 751197d..519404c 100644
--- a/fs/pstore/ram.c
+++ b/fs/pstore/ram.c
@@ -287,11 +287,6 @@ static int notrace ramoops_pstore_write_buf(enum pstore_type_id type,
return -ENOMEM;
persistent_ram_write(cxt->fprz, buf, size, 1);
return 0;
- } else if (type == PSTORE_TYPE_PMSG) {
- if (!cxt->mprz)
- return -ENOMEM;
- persistent_ram_write(cxt->mprz, buf, size, 1);
- return 0;
}
if (type != PSTORE_TYPE_DMESG)
--
2.7.4