Browse Source

device.c, #5/19, drop 'eqfound', equivalent to 'wl != NULL'

pre-master-46
rlar 9 years ago
parent
commit
26f7a0e04e
  1. 5
      src/frontend/device.c

5
src/frontend/device.c

@ -1124,7 +1124,6 @@ com_alter_common(wordlist *wl, int do_model)
/* DIE 2009_02_06 */ /* DIE 2009_02_06 */
int step = 0, i, wlen, maxelem = 3; int step = 0, i, wlen, maxelem = 3;
wordlist *wl2 = NULL, *wlin, *rhs; wordlist *wl2 = NULL, *wlin, *rhs;
bool eqfound = FALSE;
if (!ft_curckt) { if (!ft_curckt) {
fprintf(cp_err, "Error: no circuit loaded\n"); 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 */ ...and if found split argument into three chars and make a new wordlist */
if (eqptr) { if (eqptr) {
/* We found '=' */ /* We found '=' */
eqfound = TRUE;
if (strlen(argument) == 1) { if (strlen(argument) == 1) {
wl2 = wlin; wl2 = wlin;
} else if (strlen(argument) > 1) { } else if (strlen(argument) > 1) {
@ -1185,8 +1183,7 @@ com_alter_common(wordlist *wl, int do_model)
step++; step++;
} }
if (eqfound) {
} else {
if (!wl) {
/* no equal sign found, probably a pre3f4 input format /* no equal sign found, probably a pre3f4 input format
'alter device value' 'alter device value'
'alter device parameter value' 'alter device parameter value'

Loading…
Cancel
Save