svn commit: r365555 - stable/12/sys/dev/iicbus/twsi

Andriy Gapon avg at FreeBSD.org
Thu Sep 10 09:02:00 UTC 2020


Author: avg
Date: Thu Sep 10 09:01:59 2020
New Revision: 365555
URL: https://svnweb.freebsd.org/changeset/base/365555

Log:
  MFC r365289: twsi: no need to compare boolean with boolean constant

Modified:
  stable/12/sys/dev/iicbus/twsi/twsi.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/iicbus/twsi/twsi.c
==============================================================================
--- stable/12/sys/dev/iicbus/twsi/twsi.c	Thu Sep 10 07:05:31 2020	(r365554)
+++ stable/12/sys/dev/iicbus/twsi/twsi.c	Thu Sep 10 09:01:59 2020	(r365555)
@@ -484,7 +484,7 @@ twsi_transfer(device_t dev, struct iic_msg *msgs, uint
 
 	sc = device_get_softc(dev);
 
-	if (sc->have_intr == false)
+	if (!sc->have_intr)
 		return (iicbus_transfer_gen(dev, msgs, nmsgs));
 
 	sc->error = 0;


More information about the svn-src-all mailing list