]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commitdiff
PM / Hibernate: Do not initialize static and extern variables to 0
authorBarry Song <Baohua.Song@csr.com>
Wed, 12 Oct 2011 06:29:18 +0000 (23:29 -0700)
committerRafael J. Wysocki <rjw@sisk.pl>
Sun, 16 Oct 2011 21:30:38 +0000 (23:30 +0200)
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>
kernel/power/hibernate.c

index 50f537953e706c288a7d7d6eaa80e41e31495b3e..ea12c8f1bdfdb7e8cd01186ce84cf8f48cf4c6a8 100644 (file)
 #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,