svn commit: r339182 - head/sys/dev/ichiic

Oleksandr Tymoshenko gonzo at FreeBSD.org
Thu Oct 4 19:54:48 UTC 2018


Author: gonzo
Date: Thu Oct  4 19:54:47 2018
New Revision: 339182
URL: https://svnweb.freebsd.org/changeset/base/339182

Log:
  [ig4] style(9) clean-up
  
  Submitted by:	Rajesh Kumar <rajfbsd at gmail.com>
  Approved by:	re (gjb, kib)

Modified:
  head/sys/dev/ichiic/ig4_iic.c

Modified: head/sys/dev/ichiic/ig4_iic.c
==============================================================================
--- head/sys/dev/ichiic/ig4_iic.c	Thu Oct  4 17:35:32 2018	(r339181)
+++ head/sys/dev/ichiic/ig4_iic.c	Thu Oct  4 19:54:47 2018	(r339182)
@@ -729,9 +729,9 @@ ig4iic_intr(void *cookie)
 	 * Workaround to trigger pending interrupt if IG4_REG_INTR_STAT
 	 * is changed after clearing it
 	 */
-	if(sc->access_intr_mask) {
+	if (sc->access_intr_mask != 0) {
 		status = reg_read(sc, IG4_REG_INTR_MASK);
-		if(status) {
+		if (status != 0) {
 			reg_write(sc, IG4_REG_INTR_MASK, 0);
 			reg_write(sc, IG4_REG_INTR_MASK, status);
 		}


More information about the svn-src-head mailing list