Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jan 2021 01:14:05 GMT
From:      Jessica Clarke <jrtc27@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0e72f2c54186 - main - virtio_mmio: Fix a style(9) issue
Message-ID:  <202101210114.10L1E5S8039454@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jrtc27:

URL: https://cgit.FreeBSD.org/src/commit/?id=0e72f2c54186aaf2f36d96a64f36d9a94627a03f

commit 0e72f2c54186aaf2f36d96a64f36d9a94627a03f
Author:     Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2021-01-21 01:02:30 +0000
Commit:     Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2021-01-21 01:05:20 +0000

    virtio_mmio: Fix a style(9) issue
---
 sys/dev/virtio/mmio/virtio_mmio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/virtio/mmio/virtio_mmio.c b/sys/dev/virtio/mmio/virtio_mmio.c
index 694d2a232fdd..c16ecd40a250 100644
--- a/sys/dev/virtio/mmio/virtio_mmio.c
+++ b/sys/dev/virtio/mmio/virtio_mmio.c
@@ -219,7 +219,7 @@ vtmmio_attach(device_t dev)
 	rid = 0;
 	sc->res[0] = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
 			RF_ACTIVE);
-	if (!sc->res[0]) {
+	if (sc->res[0] == NULL) {
 		device_printf(dev, "Cannot allocate memory window.\n");
 		return (ENXIO);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101210114.10L1E5S8039454>