diff options
author | Toomas Soome <tsoome@me.com> | 2019-12-31 09:17:44 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2020-03-20 09:15:25 +0200 |
commit | 278de290aa274ca244c25d81b2940211c15ab7e5 (patch) | |
tree | 7631aff9564609f46bd94a155984c06f0cad3358 /usr/src | |
parent | f9c7ecc9013918bf789e154e2ed5f2e8fb6ce24c (diff) | |
download | illumos-joyent-278de290aa274ca244c25d81b2940211c15ab7e5.tar.gz |
12368 asy: variable may be used uninitialized
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Reviewed by: Alexander Pyhalov <alp@rsu.ru>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/uts/common/io/asy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/uts/common/io/asy.c b/usr/src/uts/common/io/asy.c index cebc10fee4..a13ae799d5 100644 --- a/usr/src/uts/common/io/asy.c +++ b/usr/src/uts/common/io/asy.c @@ -322,7 +322,7 @@ static int asyattach(dev_info_t *, ddi_attach_cmd_t); static int asydetach(dev_info_t *, ddi_detach_cmd_t); static int asyquiesce(dev_info_t *); -static struct cb_ops cb_asy_ops = { +static struct cb_ops cb_asy_ops = { nodev, /* cb_open */ nodev, /* cb_close */ nodev, /* cb_strategy */ @@ -1548,8 +1548,8 @@ asyopen(queue_t *rq, dev_t *dev, int flag, int sflag, cred_t *cr) struct asyncline *async; int mcr; int unit; - int len; - struct termios *termiosp; + int len; + struct termios *termiosp; unit = UNIT(*dev); DEBUGCONT1(ASY_DEBUG_CLOSE, "asy%dopen\n", unit); @@ -1990,7 +1990,7 @@ asy_waiteot(struct asycom *asy) static void asy_reset_fifo(struct asycom *asy, uchar_t flush) { - uchar_t lcr; + uchar_t lcr = 0; /* On a 16750, we have to set DLAB in order to set FIFOEXTRA. */ |