From 027b7801899e67133c153b3918205bf5464946e1 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Sun, 17 Dec 2023 06:19:08 -0600 Subject: [PATCH] Fix FT857 set_vfo cppcheck warning as get_vfo is always RIG_OK --- rigs/yaesu/ft857.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/rigs/yaesu/ft857.c b/rigs/yaesu/ft857.c index 7964cdd93..09dbbe861 100644 --- a/rigs/yaesu/ft857.c +++ b/rigs/yaesu/ft857.c @@ -636,14 +636,7 @@ int ft857_set_vfo(RIG *rig, vfo_t vfo) rig_debug(RIG_DEBUG_VERBOSE, "%s: called \n", __func__); - int retval = ft857_get_vfo(rig, &curvfo); - - if (retval != RIG_OK) - { - rig_debug(RIG_DEBUG_ERR, "%s: error get_vfo '%s'\n", __func__, - rigerror(retval)); - return retval; - } + ft857_get_vfo(rig, &curvfo); // retval is always RIG_OK so ignore it if (curvfo == vfo) {