OSDN Git Service

dump: simplify a bit kdump get_next_page()
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 25 Aug 2022 08:40:12 +0000 (12:40 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 6 Oct 2022 15:31:46 +0000 (19:31 +0400)
commit08df343874fcddd260021a04ce3c5a34f2c48164
tree569993fde8d571da0aee4d1decbd67d03ade7c4c
parent2341a94d3a0a8a93a5a977e642da1807b8edaab8
dump: simplify a bit kdump get_next_page()

This should be functionally equivalent, but slightly easier to read,
with simplified paths and checks at the end of the function.

The following patch is a major rewrite to get rid of the assert().

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
dump/dump.c