Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Sep 2011 15:49:28 +0000 (UTC)
From:      David Christensen <davidch@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r225532 - head/sys/dev/bxe
Message-ID:  <201109131549.p8DFnS6j086668@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: davidch
Date: Tue Sep 13 15:49:28 2011
New Revision: 225532
URL: http://svn.freebsd.org/changeset/base/225532

Log:
  - Fix compiler warning in ADD_64() macro.
  
  Approved by:	re
  Obtained from:	dimitry@andic.com
  MFC after:	One week

Modified:
  head/sys/dev/bxe/if_bxe.c

Modified: head/sys/dev/bxe/if_bxe.c
==============================================================================
--- head/sys/dev/bxe/if_bxe.c	Tue Sep 13 14:07:05 2011	(r225531)
+++ head/sys/dev/bxe/if_bxe.c	Tue Sep 13 15:49:28 2011	(r225532)
@@ -7188,7 +7188,7 @@ bxe_attn_int(struct bxe_softc* sc)
 /* sum[hi:lo] += add[hi:lo] */
 #define	ADD_64(s_hi, a_hi, s_lo, a_lo) do {			\
 	s_lo += a_lo;						\
-	s_hi += a_hi + (s_lo < a_lo) ? 1 : 0;			\
+	s_hi += a_hi + ((s_lo < a_lo) ? 1 : 0);			\
 } while (0)
 
 /* Subtraction = minuend -= subtrahend */



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