pstore: fix one type of return value in pstore