bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 31/66] i386/i386at/com.c: simplify code


From: Samuel Thibault
Subject: Re: [PATCH 31/66] i386/i386at/com.c: simplify code
Date: Mon, 9 Dec 2013 00:01:36 +0900
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Marin Ramesa, le Thu 05 Dec 2013 22:03:25 +0100, a écrit :
> Variable comtimer_active is used uninitialized. What's the
> chance of this variable getting the value FALSE?

> @@ -64,7 +64,6 @@ struct tty com_tty[NCOM];
>  int commodem[NCOM];
>  int comcarrier[NCOM] = {0, 0,};
>  boolean_t comfifo[NCOM];
> -boolean_t comtimer_active;

Simply by being a statically-allocated variable, thus defaulting to 0.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]