firmware-utils: fix mistake and improve logic in nec-enc
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Sat, 31 Oct 2020 12:45:05 +0000 (21:45 +0900)
committerPetr Štetiar <ynezz@true.cz>
Thu, 12 Nov 2020 17:19:44 +0000 (18:19 +0100)
commit65f3e7ce1f4ad0abda9f0b98ffb7972960602b41
tree84f652d0208271eec5dc2bf72af503803f8fade6
parent165f0b00cdd2f763c1d478c2f58c535fc19b13bd
firmware-utils: fix mistake and improve logic in nec-enc

this patch fixes/improves follows:

- PATTERN_LEN is defined as a macro but unused
- redundant logic in count-up for "ptn"

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
tools/firmware-utils/Makefile
tools/firmware-utils/src/nec-enc.c