diff options
Diffstat (limited to 'drivers/macintosh/therm_adt746x.c')
| -rw-r--r-- | drivers/macintosh/therm_adt746x.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/drivers/macintosh/therm_adt746x.c b/drivers/macintosh/therm_adt746x.c index f433521a6f9d..d7cd5afa38cd 100644 --- a/drivers/macintosh/therm_adt746x.c +++ b/drivers/macintosh/therm_adt746x.c @@ -230,7 +230,7 @@ static void update_fans_speed (struct thermostat *th)  	/* we don't care about local sensor, so we start at sensor 1 */  	for (i = 1; i < 3; i++) { -		int started = 0; +		bool started = false;  		int fan_number = (th->type == ADT7460 && i == 2);  		int var = th->temps[i] - th->limits[i]; @@ -243,7 +243,7 @@ static void update_fans_speed (struct thermostat *th)  			if (abs(var - th->last_var[fan_number]) < 2)  				continue; -			started = 1; +			started = true;  			new_speed = fan_speed + ((var-1)*step);  			if (new_speed < fan_speed) |