From 2989782286a166e803e4a3d44c3e416dc6f1cd1d Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Sun, 6 Feb 2022 00:00:55 -0600 Subject: [PATCH] Fix some RETURNFUNC statements to balance depth counter --- rigs/kenwood/kenwood.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rigs/kenwood/kenwood.c b/rigs/kenwood/kenwood.c index 716e5d30a..a35203ed2 100644 --- a/rigs/kenwood/kenwood.c +++ b/rigs/kenwood/kenwood.c @@ -247,7 +247,7 @@ int kenwood_transaction(RIG *rig, const char *cmdstr, char *data, if ((!cmdstr && !datasize) || (datasize && !data)) { - RETURNFUNC(-RIG_EINVAL); + RETURNFUNC2(-RIG_EINVAL); } rs = &rig->state; @@ -271,7 +271,7 @@ int kenwood_transaction(RIG *rig, const char *cmdstr, char *data, if (data) { strncpy(data, priv->last_if_response, datasize); } - RETURNFUNC(RIG_OK); + RETURNFUNC2(RIG_OK); } // else we drop through and do the real IF command @@ -581,7 +581,7 @@ transaction_quit: } rs->transaction_active = 0; - RETURNFUNC(retval); + RETURNFUNC2(retval); }