Skip to content

Commit 4dc5a32

Browse files
Xin Gaorichardweinberger
authored andcommitted
um: Do not initialise statics to 0.
do not initialise statics to 0. Signed-off-by: Xin Gao <gaoxin@cdjrlc.com> Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent 3848d47 commit 4dc5a32

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

arch/um/drivers/mconsole_kern.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ struct unplugged_pages {
283283
};
284284

285285
static DEFINE_MUTEX(plug_mem_mutex);
286-
static unsigned long long unplugged_pages_count = 0;
286+
static unsigned long long unplugged_pages_count;
287287
static LIST_HEAD(unplugged_pages);
288288
static int unplug_index = UNPLUGGED_PER_PAGE;
289289

arch/um/drivers/ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static const struct tty_operations ssl_ops = {
106106
/* Changed by ssl_init and referenced by ssl_exit, which are both serialized
107107
* by being an initcall and exitcall, respectively.
108108
*/
109-
static int ssl_init_done = 0;
109+
static int ssl_init_done;
110110

111111
static void ssl_console_write(struct console *c, const char *string,
112112
unsigned len)

arch/um/drivers/stdio_console.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static int con_remove(int n, char **error_out)
8888
}
8989

9090
/* Set in an initcall, checked in an exitcall */
91-
static int con_init_done = 0;
91+
static int con_init_done;
9292

9393
static int con_install(struct tty_driver *driver, struct tty_struct *tty)
9494
{

arch/um/drivers/ubd_kern.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,7 @@ static void do_io(struct io_thread_req *req, struct io_desc *desc)
15551555
int kernel_fd = -1;
15561556

15571557
/* Only changed by the io thread. XXX: currently unused. */
1558-
static int io_count = 0;
1558+
static int io_count;
15591559

15601560
int io_thread(void *arg)
15611561
{

0 commit comments

Comments
 (0)