Date: Mon, 18 Apr 2011 14:34:10 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r220786 - head/sys/cam Message-ID: <201104181434.p3IEYAdU074887@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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(); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104181434.p3IEYAdU074887>