From 51b30a8ff29fa55aad280924b5d791ea1c83e4b8 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Mon, 16 Feb 2015 14:16:28 +0000 Subject: [PATCH] Removed redundant precondition test --- kenwood/kenwood.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kenwood/kenwood.c b/kenwood/kenwood.c index c1528982b..becb5860d 100644 --- a/kenwood/kenwood.c +++ b/kenwood/kenwood.c @@ -200,7 +200,7 @@ int kenwood_transaction(RIG *rig, const char *cmdstr, char *data, size_t datasiz rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__); - if (!rig || (!cmdstr && !datasize) || datasize < 0 || (datasize && !data)) + if (!rig || (!cmdstr && !datasize) || (datasize && !data)) return -RIG_EINVAL; struct kenwood_priv_caps *caps = kenwood_caps(rig);