PM: hibernate: Remove blk_status_to_errno in hib_wait_io
authorFalla Coulibaly <fallacoulibalyz@gmail.com>
Wed, 18 Aug 2021 21:47:40 +0000 (16:47 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 15 Sep 2021 12:17:14 +0000 (14:17 +0200)
commit5416da01ff6e7275f9a4cfd7ff99e6b12b8dc2a8
tree4005caa81ddb22790d214fea8fc217e8dd720059
parentbfcc1e67ff1e4aa8bfe2ca57f99390fc284c799d
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>
kernel/power/swap.c