svn commit: r236659 - stable/9/sys/dev/vxge/vxgehal
Eitan Adler
eadler at FreeBSD.org
Wed Jun 6 06:32:51 UTC 2012
Author: eadler
Date: Wed Jun 6 06:32:50 2012
New Revision: 236659
URL: http://svn.freebsd.org/changeset/base/236659
Log:
MFC r236377:
Fix bug revealed by warning generated by clang:
warning: equality comparison with extraneous parentheses
[-Wparentheses-equality]
Approved by: cperciva (implicit)
Modified:
stable/9/sys/dev/vxge/vxgehal/vxgehal-channel.h
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/dev/ (props changed)
Modified: stable/9/sys/dev/vxge/vxgehal/vxgehal-channel.h
==============================================================================
--- stable/9/sys/dev/vxge/vxgehal/vxgehal-channel.h Wed Jun 6 06:19:52 2012 (r236658)
+++ stable/9/sys/dev/vxge/vxgehal/vxgehal-channel.h Wed Jun 6 06:32:50 2012 (r236659)
@@ -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;
More information about the svn-src-stable-9
mailing list