summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-05-16 14:23:03 +0100
committerLeah Rowe <leah@libreboot.org>2023-05-16 23:11:35 +0100
commit01fdfa3ab67ebe6124acd38dcf789cb86bee77b5 (patch)
treee7979fbb6dc96108faa9c7c7e665db1577a36038 /util
parent50b35939ded374c4a387a0dd81ac48d92026a98d (diff)
util/spkmodem_recv: Tidy up global variables
They do not need to be initialised zero, because global variables are always zero by default, unless set differently by the programmer. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/spkmodem_recv/spkmodem-recv.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/util/spkmodem_recv/spkmodem-recv.c b/util/spkmodem_recv/spkmodem-recv.c
index be0aa27e..b4179d80 100644
--- a/util/spkmodem_recv/spkmodem-recv.c
+++ b/util/spkmodem_recv/spkmodem-recv.c
@@ -23,9 +23,7 @@
signed short frame[2 * SAMPLES_PER_FRAME];
signed short pulse[2 * SAMPLES_PER_FRAME];
-int f1, f2;
-int lp = 0;
-int ascii_bit = 7;
+int f1, f2, lp, ascii_bit = 7;
char ascii = 0;
void handle_audio(void);