From efb6edcb5209d295097699d8bac9bd26fb50181a Mon Sep 17 00:00:00 2001 From: Michael Black Date: Wed, 18 Dec 2019 17:22:15 -0600 Subject: [PATCH] Fix cppcheck warning in kpa.c --- amplifiers/elecraft/kpa.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/amplifiers/elecraft/kpa.c b/amplifiers/elecraft/kpa.c index e21ab813c..308a63cb9 100644 --- a/amplifiers/elecraft/kpa.c +++ b/amplifiers/elecraft/kpa.c @@ -133,7 +133,6 @@ int kpa_transaction(AMP *amp, const char *cmd, char *response, int response_len) if (response) // if response expected get it { - int len; responsebuf[0] = 0; len = read_string(&rs->ampport, responsebuf, KPABUFSZ, ";", 1); @@ -153,7 +152,6 @@ int kpa_transaction(AMP *amp, const char *cmd, char *response, int response_len) do { - int len; char c = ';'; rig_debug(RIG_DEBUG_VERBOSE, "%s waiting for ;\n", __func__); err = write_block(&rs->ampport, &c, 1); @@ -273,8 +271,6 @@ int kpa_get_level(AMP *amp, setting_t level, value_t *val) rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__); - if (!amp) { return -RIG_EINVAL; } - // get the current antenna selected cmd = "^AE;"; retval = kpa_transaction(amp, cmd, responsebuf, sizeof(responsebuf));