From: Anton Vorontsov Date: Sat, 26 May 2012 13:20:22 +0000 (-0700) Subject: pstore/ram: Factor ramoops_get_next_prz() out of ramoops_pstore_read() X-Git-Tag: v3.6-rc1~100^2~794 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=755d66b48fe5a1f2a07802fcc8704e8b9e775e7d;p=pandora-kernel.git pstore/ram: Factor ramoops_get_next_prz() out of ramoops_pstore_read() This will help make code clearer when we'll add support for other message types. The patch also changes return value from -EINVAL to 0 in case of end-of-records. The exact value doesn't matter for pstore (it should be just <= 0), but 0 feels more correct. Signed-off-by: Anton Vorontsov Acked-by: Kees Cook Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed