From b9df5137053212f75887b858fd1c4f9a858b115e Mon Sep 17 00:00:00 2001 From: "Dr.-Ing. Amilcar do Carmo Lucas" Date: Tue, 19 Jun 2018 19:36:11 +0200 Subject: [PATCH] GCS_MAVLink: remove redundant ret = true statements (NFC) --- libraries/GCS_MAVLink/GCS_Common.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 009c698a2f..a2d910c906 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -2971,7 +2971,6 @@ bool GCS_MAVLINK::try_send_message(const enum ap_message id) case MSG_NEXT_PARAM: CHECK_PAYLOAD_SIZE(PARAM_VALUE); queued_param_send(); - ret = true; break; case MSG_HEARTBEAT: @@ -2983,7 +2982,6 @@ bool GCS_MAVLINK::try_send_message(const enum ap_message id) case MSG_HWSTATUS: CHECK_PAYLOAD_SIZE(HWSTATUS); send_hwstatus(); - ret = true; break; case MSG_LOCATION: @@ -3021,7 +3019,6 @@ bool GCS_MAVLINK::try_send_message(const enum ap_message id) case MSG_EXTENDED_STATUS2: CHECK_PAYLOAD_SIZE(MEMINFO); send_meminfo(); - ret = true; break; case MSG_RANGEFINDER: @@ -3141,7 +3138,6 @@ bool GCS_MAVLINK::try_send_message(const enum ap_message id) #if CONFIG_HAL_BOARD == HAL_BOARD_SITL AP_HAL::panic("Sending unknown ap_message %u", id); #endif - ret = true; break; }