aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hyperv
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2023-09-11 08:51:46 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2023-09-11 08:51:46 +0000
commit4196186dbfd0949cfa2c51979fb169b7a79a80e4 (patch)
tree822cee0ba3344b4aac2bf997f875608290341c5a /sys/dev/hyperv
parent6cec93da46c4a91a042b0be488844052c0f8985a (diff)
Diffstat (limited to 'sys/dev/hyperv')
-rw-r--r--sys/dev/hyperv/pcib/vmbus_pcib.c6
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);
}