Fix apparent logic reversal in setting the 'auto_mode' flag.

MFC after: 2 weeks
This commit is contained in:
Alexander Kabaev 2012-02-26 21:24:27 +00:00
parent f9a61f7dcb
commit 2f42a9bf0d

View File

@ -276,9 +276,9 @@ p4tcc_set(device_t dev, const struct cf_setting *set)
* what the current mode.
*/
if (msr & TCC_ENABLE_ONDEMAND)
sc->auto_mode = TRUE;
else
sc->auto_mode = FALSE;
else
sc->auto_mode = TRUE;
return (0);
}