svn commit: r221152 - stable/8/sys/cam
Alexander Motin
mav at FreeBSD.org
Thu Apr 28 07:21:02 UTC 2011
Author: mav
Date: Thu Apr 28 07:21:01 2011
New Revision: 221152
URL: http://svn.freebsd.org/changeset/base/221152
Log:
MFC r220786:
Remove always false "< 0" check for unsgined int variable. This check is
also duplicate, as the value was already checked for 0 before decrementing.
Modified:
stable/8/sys/cam/cam_periph.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
Modified: stable/8/sys/cam/cam_periph.c
==============================================================================
--- stable/8/sys/cam/cam_periph.c Thu Apr 28 06:57:46 2011 (r221151)
+++ stable/8/sys/cam/cam_periph.c Thu Apr 28 07:21:01 2011 (r221152)
@@ -527,8 +527,6 @@ cam_periph_invalidate(struct cam_periph
xpt_lock_buses();
if (periph->refcount == 0)
camperiphfree(periph);
- else if (periph->refcount < 0)
- printf("cam_invalidate_periph: refcount < 0!!\n");
xpt_unlock_buses();
}
More information about the svn-src-stable
mailing list