zap dead stores; prompted by a diff from kshe
authorotto <otto@openbsd.org>
Tue, 28 Nov 2017 09:44:14 +0000 (09:44 +0000)
committerotto <otto@openbsd.org>
Tue, 28 Nov 2017 09:44:14 +0000 (09:44 +0000)
usr.bin/dc/bcode.c

index 760d816..c1236a0 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: bcode.c,v 1.53 2017/11/28 08:03:01 otto Exp $ */
+/*     $OpenBSD: bcode.c,v 1.54 2017/11/28 09:44:14 otto Exp $ */
 
 /*
  * Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
@@ -1589,11 +1589,8 @@ skipN(void)
 static void
 skip_until_mark(void)
 {
-       int ch;
-
        for (;;) {
-               ch = readch();
-               switch (ch) {
+               switch (readch()) {
                case 'M':
                        return;
                case EOF:
@@ -1618,7 +1615,7 @@ skip_until_mark(void)
                        free(read_string(&bmachine.readstack[bmachine.readsp]));
                        break;
                case '!':
-                       switch (ch = readch()) {
+                       switch (readch()) {
                                case '<':
                                case '>':
                                case '=':