From a305b4f205f6a33f36d0b5f518351d60d881ddd2 Mon Sep 17 00:00:00 2001 From: Wouter van Gulik Date: Sat, 21 Aug 2021 20:45:43 +0200 Subject: [PATCH] ft600.c: Drop width check, code below has no check. The lower code would have crashed if width was NULL, so 'width == NULL' never happens. --- rigs/yaesu/ft600.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rigs/yaesu/ft600.c b/rigs/yaesu/ft600.c index c0f353a1e..e471075ac 100644 --- a/rigs/yaesu/ft600.c +++ b/rigs/yaesu/ft600.c @@ -467,10 +467,7 @@ int ft600_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width) return -RIG_EINVAL; } - if (width != NULL) - { - *width = RIG_PASSBAND_NORMAL; - } + *width = RIG_PASSBAND_NORMAL; ret = ft600_read_status(rig);