From 5613610641753f9918f00732961251de24fd934c Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 17 Aug 2021 18:56:14 +1000 Subject: [PATCH] AP_Arming: remove redundant checks_to_perform check This is identical to the check just above it --- libraries/AP_Arming/AP_Arming.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/libraries/AP_Arming/AP_Arming.cpp b/libraries/AP_Arming/AP_Arming.cpp index 642ca97d4b..47926aac95 100644 --- a/libraries/AP_Arming/AP_Arming.cpp +++ b/libraries/AP_Arming/AP_Arming.cpp @@ -480,15 +480,12 @@ bool AP_Arming::gps_checks(bool report) if ((checks_to_perform & ARMING_CHECK_ALL) || (checks_to_perform & ARMING_CHECK_GPS)) { // Any failure messages from GPS backends - if ((checks_to_perform & ARMING_CHECK_ALL) || - (checks_to_perform & ARMING_CHECK_GPS)) { char failure_msg[50] = {}; if (!AP::gps().backends_healthy(failure_msg, ARRAY_SIZE(failure_msg))) { if (failure_msg[0] != '\0') { check_failed(ARMING_CHECK_GPS, report, "%s", failure_msg); } return false; - } } //GPS OK?