Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 2020 10:30:40 +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: r364914 - stable/12/sys/dev/iicbus/mux
Message-ID:  <202008281030.07SAUevm029388@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Fri Aug 28 10:30:39 2020
New Revision: 364914
URL: https://svnweb.freebsd.org/changeset/base/364914

Log:
  MFC r364344: iicmux: fix a sign error in comparison

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

Modified: stable/12/sys/dev/iicbus/mux/iicmux.c
==============================================================================
--- stable/12/sys/dev/iicbus/mux/iicmux.c	Fri Aug 28 10:28:52 2020	(r364913)
+++ stable/12/sys/dev/iicbus/mux/iicmux.c	Fri Aug 28 10:30:39 2020	(r364914)
@@ -283,7 +283,7 @@ iicmux_attach_children(struct iicmux_softc *sc)
 		}
 		sc->childdevs[idx] = device_add_child(sc->dev, "iicbus", -1);
 		sc->childnodes[idx] = child;
-		if (sc->maxbus < idx)
+		if (sc->maxbus < (int)idx)
 			sc->maxbus = idx;
 	}
 



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