The branch main has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=0e72f2c54186aaf2f36d96a64f36d9a94627a03f
commit 0e72f2c54186aaf2f36d96a64f36d9a94627a03f Author: Jessica Clarke <jrt...@freebsd.org> AuthorDate: 2021-01-21 01:02:30 +0000 Commit: Jessica Clarke <jrt...@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); } _______________________________________________ dev-commits-src-main@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"