Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wang chaodong and committed by
Rafael J. Wysocki
a1ca8295 a39b6ac3

+1 -1
+1 -1
kernel/power/snapshot.c
··· 1119 1119 int create_basic_memory_bitmaps(void) 1120 1120 { 1121 1121 struct memory_bitmap *bm1, *bm2; 1122 - int error = 0; 1122 + int error; 1123 1123 1124 1124 if (forbidden_pages_map && free_pages_map) 1125 1125 return 0;