diff options
| author | Mateusz Guzik <mjg@FreeBSD.org> | 2021-12-14 14:14:34 +0000 |
|---|---|---|
| committer | Mateusz Guzik <mjg@FreeBSD.org> | 2021-12-14 14:14:34 +0000 |
| commit | 4d78ef3e811f5fb61ba2b550f0ea990ab12b83a9 (patch) | |
| tree | 76e9758e743298016fc6692d2e6347eec20ec4e7 | |
| parent | 94b098882f39341ef306e156bca1b248b385be09 (diff) | |
| -rw-r--r-- | sys/dev/virtio/console/virtio_console.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/virtio/console/virtio_console.c b/sys/dev/virtio/console/virtio_console.c index b65935303b21..33192f0bf618 100644 --- a/sys/dev/virtio/console/virtio_console.c +++ b/sys/dev/virtio/console/virtio_console.c @@ -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, |
