diff options
author | mav <mav@FreeBSD.org> | 2011-04-18 14:34:10 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2011-04-18 14:34:10 +0000 |
commit | 523be27bea7e36731ccc9de7fb0a478e1d5bd52c (patch) | |
tree | f61c81168a9662381afa3cb64775cc418c766b29 | |
parent | a0315ed1fae49342548785571e7c070a8ccc143f (diff) | |
download | FreeBSD-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
-rw-r--r-- | sys/cam/cam_periph.c | 2 |
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(); } |