From 20c303eb8b1388736730ca8135ac40595543091c Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 10 Jun 2017 10:00:29 +0200 Subject: [PATCH] device.c, #14/19, drop variable 'wl2', can use 'wl' instead --- src/frontend/device.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/frontend/device.c b/src/frontend/device.c index f60ce22d6..6c79fd830 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 i; - wordlist *wl2; if (!ft_curckt) { fprintf(cp_err, "Error: no circuit loaded\n"); @@ -1208,10 +1207,10 @@ com_alter_common(wordlist *wl, int do_model) wlin = wl_append(wlin, wl_cons(copy("="), wl_chop_rest(wlin))); } - wl2 = parent->wl_next; + wl = parent->wl_next; /* Everything is ready, parsing of the wordlist starts here. */ - words = wl2; + words = wl; while (words) { p = words->wl_word; eqword = words; @@ -1233,7 +1232,7 @@ com_alter_common(wordlist *wl, int do_model) dev = NULL; param = NULL; - words = wl2; + words = wl; while (words != eqword) { p = words->wl_word; if (param) {