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
This commit is contained in:
Alexander Motin 2011-04-18 14:34:10 +00:00
parent 803cd701f3
commit 20790a105d

View File

@ -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();
}