PM: hibernate: factor out a helper to find the resume device
authorChristoph Hellwig <hch@lst.de>
Wed, 31 May 2023 12:55:13 +0000 (14:55 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 5 Jun 2023 16:55:20 +0000 (10:55 -0600)
commit02b42d58f3898134b900ff3030561099e38adb32
treee61f411d289d2bb0e016cf85fe60173e1aa637e0
parentaa5f6ed8c21ec1aa5fd688118d8d5cd87c5ffc1d
PM: hibernate: factor out a helper to find the resume device

Split the logic to find the resume device out software_resume and into
a separate helper to start unwindig the convoluted goto logic.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
Link: https://lore.kernel.org/r/20230531125535.676098-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
kernel/power/hibernate.c