Commit bbeaa469 authored by Li zeming's avatar Li zeming Committed by Rafael J. Wysocki

PM: hibernate: Do not initialize error in swap_write_page()

'error' first receives the function result before it is used, and it
does not need to be assigned a value during definition.
Signed-off-by: default avatarLi zeming <zeming@nfschina.com>
[ rjw: Subject rewrite ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent a1ca8295
......@@ -451,7 +451,7 @@ static int get_swap_writer(struct swap_map_handle *handle)
static int swap_write_page(struct swap_map_handle *handle, void *buf,
struct hib_bio_batch *hb)
{
int error = 0;
int error;
sector_t offset;
if (!handle->cur)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment