diff options
| author | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2023-09-11 08:51:46 +0000 |
|---|---|---|
| committer | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2023-09-11 08:51:46 +0000 |
| commit | 4196186dbfd0949cfa2c51979fb169b7a79a80e4 (patch) | |
| tree | 822cee0ba3344b4aac2bf997f875608290341c5a /sys/dev/hyperv | |
| parent | 6cec93da46c4a91a042b0be488844052c0f8985a (diff) | |
Diffstat (limited to 'sys/dev/hyperv')
| -rw-r--r-- | sys/dev/hyperv/pcib/vmbus_pcib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/hyperv/pcib/vmbus_pcib.c b/sys/dev/hyperv/pcib/vmbus_pcib.c index da722eb0b834..ee7b82c10f23 100644 --- a/sys/dev/hyperv/pcib/vmbus_pcib.c +++ b/sys/dev/hyperv/pcib/vmbus_pcib.c @@ -1705,9 +1705,9 @@ vmbus_pcib_alloc_resource(device_t dev, device_t child, int type, int *rid, if (res == NULL && start + count - 1 == end) res = bus_generic_alloc_resource(dev, child, type, rid, start, end, count, flags); - if (res) { - device_printf(dev,"vmbus_pcib_alloc_resource is successful\n"); - } + if (res == NULL) + device_printf(dev, "vmbus_pcib_alloc_resource failed\n"); + return (res); } |
