device.c, #1/19, can 'break' here, because 'wl' is NULL

This commit is contained in:
rlar 2017-06-08 09:11:58 +02:00
parent 761f3915f5
commit 1eca384a94
1 changed files with 7 additions and 5 deletions

View File

@ -1176,12 +1176,14 @@ com_alter_common(wordlist *wl, int do_model)
wl_splice(wl, wl2);
wl = NULL;
}
} else {
/* deal with 'altermod m1 vth0=0.7' by moving
forward beyond 'm1' */
wl = wl->wl_next;
step++;
break;
}
/* deal with 'altermod m1 vth0=0.7' by moving
* forward beyond 'm1'
*/
wl = wl->wl_next;
step++;
}
if (eqfound) {