1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

"status_reg.acpwr ? 1 : 0" is now the same as just "status_reg.acpwr".

This commit is contained in:
Maxim Sobolev 2015-06-09 19:22:13 +00:00
parent 02f4627c40
commit 1ab62874ae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=284190

View File

@ -131,7 +131,7 @@ am335x_pmic_intr(void *arg)
shutdown_nice(RB_POWEROFF);
if (int_reg.aci) {
snprintf(notify_buf, sizeof(notify_buf), "notify=0x%02x",
status_reg.acpwr ? 1 : 0);
status_reg.acpwr);
devctl_notify_f("ACPI", "ACAD", "power", notify_buf, M_NOWAIT);
}
}