svn commit: r220786 - head/sys/cam
Alexander Motin
mav at FreeBSD.org
Mon Apr 18 14:34:10 UTC 2011
Author: mav
Date: Mon Apr 18 14:34:10 2011
New Revision: 220786
URL: http://svn.freebsd.org/changeset/base/220786
Log:
Remove always false "< 0" check for unsgined int variable. This check is
also duplicate, as the value was already checked for 0 before decrementing.
Reported by: rpaulo
Modified:
head/sys/cam/cam_periph.c
Modified: head/sys/cam/cam_periph.c
==============================================================================
--- head/sys/cam/cam_periph.c Mon Apr 18 14:15:52 2011 (r220785)
+++ head/sys/cam/cam_periph.c Mon Apr 18 14:34:10 2011 (r220786)
@@ -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-all
mailing list