summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
Diffstat (limited to 'src/device')
-rw-r--r--src/device/device_const.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/device_const.c b/src/device/device_const.c
index 79f025da97..2dc583ca27 100644
--- a/src/device/device_const.c
+++ b/src/device/device_const.c
@@ -184,7 +184,7 @@ DEVTREE_CONST struct device *find_dev_path(
DEVTREE_CONST struct device *child;
if (!parent) {
- assert(0);
+ BUG();
/* Return NULL in case asserts are considered non-fatal. */
return NULL;
}
@@ -282,7 +282,7 @@ DEVTREE_CONST struct device *pcidev_path_behind_pci2pci_bridge(
pci_devfn_t devfn)
{
if (!bridge || (bridge->path.type != DEVICE_PATH_PCI)) {
- assert(0);
+ BUG();
/* Return NULL in case asserts are non-fatal. */
return NULL;
}