Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Sep 2020 09:01:59 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r365555 - stable/12/sys/dev/iicbus/twsi
Message-ID:  <202009100901.08A91xtl014010@repo.freebsd.org>

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



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