From 229b1eef213abbb1faf870e4675ecff994978765 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 28 Oct 2021 16:06:12 +0200 Subject: [PATCH] radio,test: fix Coverity warning about dead code add default in switch instead of using the the END state directly that is checked before entering the switch. Coverity correctly reports this as dead code. --- lib/src/radio/test/test_radio_rt_gain.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/radio/test/test_radio_rt_gain.cc b/lib/src/radio/test/test_radio_rt_gain.cc index 540ef7399..c12f671e5 100644 --- a/lib/src/radio/test/test_radio_rt_gain.cc +++ b/lib/src/radio/test/test_radio_rt_gain.cc @@ -262,8 +262,8 @@ int main(int argc, char** argv) continue; } break; - case END: - continue; + default: + break; } // Prepare reception buffers