Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Sep 2020 08:01:21 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r365289 - head/sys/dev/iicbus/twsi
Message-ID:  <202009030801.08381Ln2017287@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009030801.08381Ln2017287>