From 278de290aa274ca244c25d81b2940211c15ab7e5 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Tue, 31 Dec 2019 09:17:44 +0200 Subject: 12368 asy: variable may be used uninitialized Reviewed by: Andy Fiddaman Reviewed by: Alexander Pyhalov Approved by: Dan McDonald --- usr/src/uts/common/io/asy.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr') 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. */ -- cgit v1.2.3