Skip to content

Commit

Permalink
PM / Hibernate: Do not initialize static and extern variables to 0
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Barry Song authored and Rafael J. Wysocki committed Oct 16, 2011
1 parent 2792065 commit d231ff1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kernel/power/hibernate.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
#include "power.h"


static int nocompress = 0;
static int noresume = 0;
static int resume_wait = 0;
static int resume_delay = 0;
static int nocompress;
static int noresume;
static int resume_wait;
static int resume_delay;
static char resume_file[256] = CONFIG_PM_STD_PARTITION;
dev_t swsusp_resume_device;
sector_t swsusp_resume_block;
int in_suspend __nosavedata = 0;
int in_suspend __nosavedata;

enum {
HIBERNATION_INVALID,
Expand Down

0 comments on commit d231ff1

Please sign in to comment.