summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-14 10:33:46 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-11-15 02:08:55 +0100
commitd7db88a17a6c5d56e18e3d3b0de9b459d0d62087 (patch)
treefa5cc06d652c552dd0a0a82b9c99132bd572e59a
parent09b1fe3eb0065c1b8ec8efe37184dfee4537af3a (diff)
chips/busses.c: use boolean instead of an int
* chips/busses.c (found): Constrain range of values to a boolean.
-rw-r--r--chips/busses.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/chips/busses.c b/chips/busses.c
index 89afa97..e555856 100644
--- a/chips/busses.c
+++ b/chips/busses.c
@@ -69,7 +69,7 @@ boolean_t configure_bus_master(
register struct bus_ctlr *master;
register struct bus_driver *driver;
- int found = 0;
+ boolean_t found = FALSE;
/*
* Match the name in the table, then pick the entry that has the
@@ -81,7 +81,7 @@ boolean_t configure_bus_master(
continue;
if (((master->adaptor == adpt_no) || (master->adaptor == '?')) &&
(strcmp(master->name, name) == 0)) {
- found = 1;
+ found = TRUE;
break;
}
}
@@ -180,7 +180,7 @@ boolean_t configure_bus_device(
register struct bus_device *device;
register struct bus_driver *driver;
- int found = 0;
+ boolean_t found = FALSE;
/*
* Walk all devices to find one with the right name
@@ -196,7 +196,7 @@ boolean_t configure_bus_device(
((!device->phys_address) ||
((device->phys_address == phys) && (device->address == virt))) &&
(strcmp(device->name, name) == 0)) {
- found = 1;
+ found = TRUE;
break;
}
}