AC_Fence: remove pointless sanity check

This commit is contained in:
Peter Barker 2019-08-08 13:05:57 +10:00 committed by Randy Mackay
parent 2bfc26621a
commit 6a241cc3e9
1 changed files with 0 additions and 6 deletions

View File

@ -418,12 +418,6 @@ void AC_Fence::record_breach(uint8_t fence_type)
/// clear_breach - update breach bitmask, time and count /// clear_breach - update breach bitmask, time and count
void AC_Fence::clear_breach(uint8_t fence_type) void AC_Fence::clear_breach(uint8_t fence_type)
{ {
// return immediately if this fence type was not breached
if ((_breached_fences & fence_type) == 0) {
return;
}
// update bitmask
_breached_fences &= ~fence_type; _breached_fences &= ~fence_type;
} }