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:
parent
803cd701f3
commit
20790a105d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=220786
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user