From 0a5d450c44440b4de0927eecc865c17f097a61e1 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 29 Jan 2025 13:38:22 +1100 Subject: [PATCH] AP_Frsky_Telem: remove dead variable write this is falsified at the top of the function ../../libraries/AP_Frsky_Telem/AP_Frsky_SPort_Passthrough.cpp:238:13: warning: Value stored to 'packet_ready' is never read [deadcode.DeadStores] packet_ready = false; ^ ~~~~~ 1 warning generated. --- libraries/AP_Frsky_Telem/AP_Frsky_SPort_Passthrough.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/libraries/AP_Frsky_Telem/AP_Frsky_SPort_Passthrough.cpp b/libraries/AP_Frsky_Telem/AP_Frsky_SPort_Passthrough.cpp index fbe31d6b1ad62..486587d56abbe 100644 --- a/libraries/AP_Frsky_Telem/AP_Frsky_SPort_Passthrough.cpp +++ b/libraries/AP_Frsky_Telem/AP_Frsky_SPort_Passthrough.cpp @@ -235,7 +235,6 @@ bool AP_Frsky_SPort_Passthrough::is_packet_ready(uint8_t idx, bool queue_empty) break; case TERRAIN: { - packet_ready = false; #if AP_TERRAIN_AVAILABLE const AP_Terrain *terrain = AP::terrain(); packet_ready = terrain && terrain->enabled();