diff options
author | Barry Song <Baohua.Song@csr.com> | 2011-10-12 02:29:18 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2011-10-16 17:30:38 -0400 |
commit | d231ff1af70a2df43d809173cf8c94e9c3beb853 (patch) | |
tree | fa6efbb106f36738032bd035e10f54936d3b683d /kernel/power | |
parent | 27920651fe0d16a25632dc238e81b54f3a504869 (diff) |
PM / Hibernate: Do not initialize static and extern variables to 0
Static and extern variables in kernel/power/hibernate.c need not be
initialized to 0 explicitly, so remove those initializations.
[rjw: Modified subject, added changelog.]
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'kernel/power')
-rw-r--r-- | kernel/power/hibernate.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c index 50f537953e70..ea12c8f1bdfd 100644 --- a/kernel/power/hibernate.c +++ b/kernel/power/hibernate.c | |||
@@ -30,14 +30,14 @@ | |||
30 | #include "power.h" | 30 | #include "power.h" |
31 | 31 | ||
32 | 32 | ||
33 | static int nocompress = 0; | 33 | static int nocompress; |
34 | static int noresume = 0; | 34 | static int noresume; |
35 | static int resume_wait = 0; | 35 | static int resume_wait; |
36 | static int resume_delay = 0; | 36 | static int resume_delay; |
37 | static char resume_file[256] = CONFIG_PM_STD_PARTITION; | 37 | static char resume_file[256] = CONFIG_PM_STD_PARTITION; |
38 | dev_t swsusp_resume_device; | 38 | dev_t swsusp_resume_device; |
39 | sector_t swsusp_resume_block; | 39 | sector_t swsusp_resume_block; |
40 | int in_suspend __nosavedata = 0; | 40 | int in_suspend __nosavedata; |
41 | 41 | ||
42 | enum { | 42 | enum { |
43 | HIBERNATION_INVALID, | 43 | HIBERNATION_INVALID, |