From d7db88a17a6c5d56e18e3d3b0de9b459d0d62087 Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Thu, 14 Nov 2013 10:33:46 +0100 Subject: chips/busses.c: use boolean instead of an int * chips/busses.c (found): Constrain range of values to a boolean. --- chips/busses.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chips') 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; } } -- cgit v1.2.3