summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorEric Caruso <ejcaruso@chromium.org>2014-09-30 13:38:52 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-10-01 01:47:39 +0000
commit28891eaaab07e873ce5ff21006713ad4f8faf975 (patch)
tree856817f626ee3bde72f898f428ed2ada6ddc4277 /util
parent85d2d1f503ae8ad43094672910130df18e4a7d13 (diff)
downloadchrome-ec-28891eaaab07e873ce5ff21006713ad4f8faf975.tar.gz
lightbar: treat HALT like a normal opcode
This removes the special casing around HALT. It saves us a string literal and some logic. In total, we gain about 50 bytes and a little cleanup for this. BUG=None BRANCH=ToT TEST=Tried a program that uses HALT (i.e. red-green-blink) in simulator and on hardware. Change-Id: Iffee1b559983fd1ecd385cc6b8967f72a6b968a0 Signed-off-by: Eric Caruso <ejcaruso@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/220589 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'util')
-rw-r--r--util/lbcc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/util/lbcc.c b/util/lbcc.c
index 6fdefed927..0b69e7d777 100644
--- a/util/lbcc.c
+++ b/util/lbcc.c
@@ -67,7 +67,6 @@ struct safe_lb_program {
#include "lightbar_opcode_list.h"
enum lightbyte_opcode {
LIGHTBAR_OPCODE_TABLE
- HALT,
MAX_OPCODE
};
#undef OP