ramoops: Remove pmsg case for write with write_buf function
PATCH 1/1 ramoops: Remove pmsg case for write with write_buf function
From: Joel Fernandes <[email protected]>
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 <[email protected]>
Cc Kees Cook <[email protected]>
Cc Anton Vorontsov <[email protected]>
Cc Colin Cross <[email protected]>
Cc Tony Luck <[email protected]>
Signed-off-by Joel Fernandes <[email protected]>
--- fs/pstore/ram.c | 5 ----- 1 file changed, 5 deletions(-)
fs/pstore/ram.c +0 -5
@@ -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 )
Signature · 1 line
2.7.4
Quoted 4 lines · Joel Fernandes
From: Joel Fernandes <[email protected]>
PMSG now uses
ramoops_pstore_write_buf_userinstead ofwrite_buf. Remove the case where we checkPSTORE_TYPE_PMSGcase inwrite_buf.
Ack