svn commit: r365289 - head/sys/dev/iicbus/twsi

Andriy Gapon avg at FreeBSD.org
Thu Sep 3 08:01:22 UTC 2020


Author: avg
Date: Thu Sep  3 08:01:21 2020
New Revision: 365289
URL: https://svnweb.freebsd.org/changeset/base/365289

Log:
  twsi: no need to compare boolean with boolean constant
  
  Testing the boolean directly is shorter and more idiomatic.
  
  MFC after:	1 week

Modified:
  head/sys/dev/iicbus/twsi/twsi.c

Modified: head/sys/dev/iicbus/twsi/twsi.c
==============================================================================
--- head/sys/dev/iicbus/twsi/twsi.c	Thu Sep  3 07:42:53 2020	(r365288)
+++ head/sys/dev/iicbus/twsi/twsi.c	Thu Sep  3 08:01:21 2020	(r365289)
@@ -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-head mailing list