diff --git a/driver-bitforce.c b/driver-bitforce.c index ebfdb0a3..7424b083 100644 --- a/driver-bitforce.c +++ b/driver-bitforce.c @@ -257,7 +257,7 @@ static bool bitforce_get_temp(struct cgpu_info *bitforce) if (temp > 0) { bitforce->temp = temp; - if (temp > bitforce->cutofftemp) { + if (unlikely(bitforce->cutofftemp > 0 && temp > bitforce->cutofftemp)) { applog(LOG_WARNING, "BFL%i: Hit thermal cutoff limit, disabling!", bitforce->device_id); bitforce->deven = DEV_RECOVER;