diff options
author | Jessica Clarke <jrtc27@FreeBSD.org> | 2021-01-21 01:02:30 +0000 |
---|---|---|
committer | Jessica Clarke <jrtc27@FreeBSD.org> | 2021-01-21 01:05:20 +0000 |
commit | 0e72f2c54186aaf2f36d96a64f36d9a94627a03f (patch) | |
tree | 02d73ab3f1102c3fb7752bf196b5fcc3e4db4abc /sys/dev | |
parent | 5bd565855a92eff19883143be986a8045ca13cf9 (diff) | |
download | src-0e72f2c54186aaf2f36d96a64f36d9a94627a03f.tar.gz src-0e72f2c54186aaf2f36d96a64f36d9a94627a03f.zip |
virtio_mmio: Fix a style(9) issue
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/virtio/mmio/virtio_mmio.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |