From 26f7a0e04ef29298c972428e455befb5f5d034f7 Mon Sep 17 00:00:00 2001 From: rlar Date: Thu, 8 Jun 2017 09:25:30 +0200 Subject: [PATCH] device.c, #5/19, drop 'eqfound', equivalent to 'wl != NULL' --- src/frontend/device.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/frontend/device.c b/src/frontend/device.c index b6e975af3..8a40ba8be 100644 --- a/src/frontend/device.c +++ b/src/frontend/device.c @@ -1124,7 +1124,6 @@ com_alter_common(wordlist *wl, int do_model) /* DIE 2009_02_06 */ int step = 0, i, wlen, maxelem = 3; wordlist *wl2 = NULL, *wlin, *rhs; - bool eqfound = FALSE; if (!ft_curckt) { fprintf(cp_err, "Error: no circuit loaded\n"); @@ -1159,7 +1158,6 @@ com_alter_common(wordlist *wl, int do_model) ...and if found split argument into three chars and make a new wordlist */ if (eqptr) { /* We found '=' */ - eqfound = TRUE; if (strlen(argument) == 1) { wl2 = wlin; } else if (strlen(argument) > 1) { @@ -1185,8 +1183,7 @@ com_alter_common(wordlist *wl, int do_model) step++; } - if (eqfound) { - } else { + if (!wl) { /* no equal sign found, probably a pre3f4 input format 'alter device value' 'alter device parameter value'