changeset 13784:4a34ce01e229

2904 hxge forgets C isn't math Reviewed by: Eric Schrock <eric.schrock@delphix.com> Reviewed by: Michael Speer <michael.speer@pluribusnetworks.com> Reviewed by: Garrett D'Amore <garrett@damore.org> Reviewed by: Richard Lowe <richlowe@richlowe.net> Approved by: Richard Lowe <richlowe@richlowe.net>
author Hengqing Hu <hudayou@hotmail.com>
date Sun, 26 Aug 2012 05:37:15 -0500
parents b3333788688b
children 1087b6a5ba25
files usr/src/uts/common/io/hxge/hxge_kstats.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/io/hxge/hxge_kstats.c	Sat Aug 25 13:00:01 2012 -0500
+++ b/usr/src/uts/common/io/hxge/hxge_kstats.c	Sun Aug 26 05:37:15 2012 -0500
@@ -893,7 +893,7 @@
 	ASSERT(rhp != NULL);
 	ASSERT(hxgep != NULL);
 	ASSERT(hxgep->statsp != NULL);
-	ASSERT(0 <= rhp->index < HXGE_MAX_RDCS);
+	ASSERT((rhp->index >= 0) && (rhp->index < HXGE_MAX_RDCS));
 
 	switch (stat) {
 	case MAC_STAT_IERRORS:
@@ -925,7 +925,7 @@
 	ASSERT(rhp != NULL);
 	ASSERT(hxgep != NULL);
 	ASSERT(hxgep->statsp != NULL);
-	ASSERT(0 <= rhp->index < HXGE_MAX_TDCS);
+	ASSERT((rhp->index >= 0) && (rhp->index < HXGE_MAX_TDCS));
 
 	switch (stat) {
 	case MAC_STAT_OERRORS: