PM: hibernate: Drop unnecessary local variable initialization
It is not necessary to intialize the error variable in create_basic_memory_bitmaps(), because it is only read after being assigned a value. Signed-off-by: Wang chaodong <chaodong@nfschina.com> [ rjw: Subject and changelog rewrite ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
committed by
Rafael J. Wysocki
parent
a39b6ac378
commit
a1ca8295ee
@@ -1119,7 +1119,7 @@ static void mark_nosave_pages(struct memory_bitmap *bm)
|
|||||||
int create_basic_memory_bitmaps(void)
|
int create_basic_memory_bitmaps(void)
|
||||||
{
|
{
|
||||||
struct memory_bitmap *bm1, *bm2;
|
struct memory_bitmap *bm1, *bm2;
|
||||||
int error = 0;
|
int error;
|
||||||
|
|
||||||
if (forbidden_pages_map && free_pages_map)
|
if (forbidden_pages_map && free_pages_map)
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user