virtio_mmio: Return early if no device
authorsf <sf@openbsd.org>
Tue, 20 Aug 2024 07:04:29 +0000 (07:04 +0000)
committersf <sf@openbsd.org>
Tue, 20 Aug 2024 07:04:29 +0000 (07:04 +0000)
commit9081d750d72b74f44e12fb2b46823378f8500217
tree121f4ebec177b4e27a45e88e67052e24d6c6efe0
parent427c9215be592ae380bd64dce772ff29cf9eebfd
virtio_mmio: Return early if no device

If there is no device, don't write to any registers.

ok jan@
sys/dev/fdt/virtio_mmio.c