The branch main has been updated by jrtc27:

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

commit 0e72f2c54186aaf2f36d96a64f36d9a94627a03f
Author:     Jessica Clarke <[email protected]>
AuthorDate: 2021-01-21 01:02:30 +0000
Commit:     Jessica Clarke <[email protected]>
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);
        }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to