virtio console: plug set-but-not-used vars

Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mateusz Guzik 2021-12-14 14:14:34 +00:00
parent 94b098882f
commit 4d78ef3e81

View File

@ -616,7 +616,7 @@ vtcon_ctrl_event_enqueue(struct vtcon_softc *sc,
struct sglist_seg segs[2];
struct sglist sg;
struct virtqueue *vq;
int error;
int error __diagused;
vq = sc->vtcon_ctrl_rxvq;
@ -649,7 +649,7 @@ static void
vtcon_ctrl_event_requeue(struct vtcon_softc *sc,
struct virtio_console_control *control)
{
int error;
int error __diagused;
bzero(control, VTCON_CTRL_BUFSZ);
@ -1048,7 +1048,7 @@ vtcon_port_create_buf(struct vtcon_port *port)
static void
vtcon_port_requeue_buf(struct vtcon_port *port, void *buf)
{
int error;
int error __diagused;
error = vtcon_port_enqueue_buf(port, buf, VTCON_BULK_BUFSZ);
KASSERT(error == 0,