git: 0e72f2c54186 - main - virtio_mmio: Fix a style(9) issue

Jessica Clarke jrtc27 at FreeBSD.org
Thu Jan 21 01:14:05 UTC 2021


The branch main has been updated by jrtc27:

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

commit 0e72f2c54186aaf2f36d96a64f36d9a94627a03f
Author:     Jessica Clarke <jrtc27 at FreeBSD.org>
AuthorDate: 2021-01-21 01:02:30 +0000
Commit:     Jessica Clarke <jrtc27 at 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);
 	}


More information about the dev-commits-src-all mailing list