Skip to content

Commit a1ca829

Browse files
Wang chaodongrafaeljw
authored andcommitted
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 <[email protected]> [ rjw: Subject and changelog rewrite ] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent a39b6ac commit a1ca829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/power/snapshot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,7 @@ static void mark_nosave_pages(struct memory_bitmap *bm)
11191119
int create_basic_memory_bitmaps(void)
11201120
{
11211121
struct memory_bitmap *bm1, *bm2;
1122-
int error = 0;
1122+
int error;
11231123

11241124
if (forbidden_pages_map && free_pages_map)
11251125
return 0;

0 commit comments

Comments
 (0)