summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2011-04-18 14:34:10 +0000
committermav <mav@FreeBSD.org>2011-04-18 14:34:10 +0000
commit523be27bea7e36731ccc9de7fb0a478e1d5bd52c (patch)
treef61c81168a9662381afa3cb64775cc418c766b29 /sys/cam
parenta0315ed1fae49342548785571e7c070a8ccc143f (diff)
downloadFreeBSD-src-523be27bea7e36731ccc9de7fb0a478e1d5bd52c.zip
FreeBSD-src-523be27bea7e36731ccc9de7fb0a478e1d5bd52c.tar.gz
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
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/cam_periph.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c
index 41185db..dd51bca 100644
--- a/sys/cam/cam_periph.c
+++ b/sys/cam/cam_periph.c
@@ -527,8 +527,6 @@ cam_periph_invalidate(struct cam_periph *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();
}
OpenPOWER on IntegriCloud