Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jun 2012 04:23:20 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r236377 - head/sys/dev/vxge/vxgehal
Message-ID:  <201206010423.q514NKtf083043@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Fri Jun  1 04:23:20 2012
New Revision: 236377
URL: http://svn.freebsd.org/changeset/base/236377

Log:
  Fix warning generated by clang;
  	warning: equality comparison with extraneous parentheses
  	[-Wparentheses-equality]
  
  Reported by:	arundel
  Reviewed by:	gnn
  Approved by:	cperciva
  MFC after:	3 days

Modified:
  head/sys/dev/vxge/vxgehal/vxgehal-channel.h

Modified: head/sys/dev/vxge/vxgehal/vxgehal-channel.h
==============================================================================
--- head/sys/dev/vxge/vxgehal/vxgehal-channel.h	Fri Jun  1 03:59:08 2012	(r236376)
+++ head/sys/dev/vxge/vxgehal/vxgehal-channel.h	Fri Jun  1 04:23:20 2012	(r236377)
@@ -291,7 +291,7 @@ __hal_channel_dtr_restore(__hal_channel_
 	else
 		dtr_index = channel->reserve_index - 1;
 
-	if ((channel->dtr_arr[dtr_index].dtr == dtrh)) {
+	if ((channel->dtr_arr[dtr_index].dtr = dtrh) != NULL) {
 
 		channel->reserve_index = dtr_index;
 		channel->dtr_arr[dtr_index].state = VXGE_HAL_CHANNEL_DTR_FREE;



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