diff options
author | Falla Coulibaly <fallacoulibalyz@gmail.com> | 2021-08-18 16:47:40 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-09-15 14:17:14 +0200 |
commit | 5416da01ff6e7275f9a4cfd7ff99e6b12b8dc2a8 (patch) | |
tree | 4005caa81ddb22790d214fea8fc217e8dd720059 /kernel/power/swap.c | |
parent | bfcc1e67ff1e4aa8bfe2ca57f99390fc284c799d (diff) | |
download | linux-5416da01ff6e7275f9a4cfd7ff99e6b12b8dc2a8.tar.bz2 |
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 <fallacoulibalyz@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/power/swap.c')
-rw-r--r-- | kernel/power/swap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/swap.c b/kernel/power/swap.c index 3cb89baebc79..9ec418955556 100644 --- a/kernel/power/swap.c +++ b/kernel/power/swap.c @@ -306,7 +306,7 @@ static blk_status_t hib_wait_io(struct hib_bio_batch *hb) * a plug will flush the plug list before sleeping. */ wait_event(hb->wait, atomic_read(&hb->count) == 0); - return blk_status_to_errno(hb->error); + return hb->error; } /* |