Skip to content

Commit 5416da0

Browse files
fallazcrafaeljw
authored andcommitted
PM: hibernate: Remove blk_status_to_errno in hib_wait_io
blk_status_to_errno doesn't appear to perform extra work besides converting blk_status_t to integer. This patch removes that unnecessary conversion as the return type of the function is blk_status_t. Signed-off-by: Falla Coulibaly <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent bfcc1e6 commit 5416da0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/power/swap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ static blk_status_t hib_wait_io(struct hib_bio_batch *hb)
306306
* a plug will flush the plug list before sleeping.
307307
*/
308308
wait_event(hb->wait, atomic_read(&hb->count) == 0);
309-
return blk_status_to_errno(hb->error);
309+
return hb->error;
310310
}
311311

312312
/*

0 commit comments

Comments
 (0)