[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/2] chips/busses.c: use boolean instead of an int
From: |
Marin Ramesa |
Subject: |
[PATCH 1/2] chips/busses.c: use boolean instead of an int |
Date: |
Thu, 14 Nov 2013 10:33:46 +0100 |
* chips/busses.c (found): Constrain range of values to a boolean.
---
chips/busses.c | 8 ++++----
1 file 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;
}
}
--
1.8.1.4
- [PATCH 1/2] chips/busses.c: use boolean instead of an int,
Marin Ramesa <=