From 523be27bea7e36731ccc9de7fb0a478e1d5bd52c Mon Sep 17 00:00:00 2001 From: mav Date: Mon, 18 Apr 2011 14:34:10 +0000 Subject: 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 --- sys/cam/cam_periph.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys/cam') 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(); } -- cgit v1.1