From 2e73c6ac470a48fefc854fce69eafff0d9c58bb8 Mon Sep 17 00:00:00 2001 From: Michael Black Date: Tue, 14 Jan 2020 14:09:28 -0600 Subject: [PATCH] Fix unused code in ft857.c found by cppcheck --- yaesu/ft857.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yaesu/ft857.c b/yaesu/ft857.c index 42dc66d70..29b669fcc 100644 --- a/yaesu/ft857.c +++ b/yaesu/ft857.c @@ -535,10 +535,9 @@ static int ft857_send_icmd(RIG *rig, int index, unsigned char *data) int ft857_get_vfo(RIG *rig, vfo_t *vfo) { unsigned char c; - int n; *vfo = RIG_VFO_B; - if ((n = ft857_read_eeprom(rig, 0x0068, &c)) < 0) /* get vfo status */ + if (ft857_read_eeprom(rig, 0x0068, &c) < 0) /* get vfo status */ { return -RIG_EPROTO; }