Author: sobomax
Date: Tue Jun  9 19:22:13 2015
New Revision: 284190
URL: https://svnweb.freebsd.org/changeset/base/284190

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

Modified:
  head/sys/arm/ti/am335x/am335x_pmic.c

Modified: head/sys/arm/ti/am335x/am335x_pmic.c
==============================================================================
--- head/sys/arm/ti/am335x/am335x_pmic.c        Tue Jun  9 19:17:33 2015        
(r284189)
+++ head/sys/arm/ti/am335x/am335x_pmic.c        Tue Jun  9 19:22:13 2015        
(r284190)
@@ -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);
        }
 }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to