From 01fdfa3ab67ebe6124acd38dcf789cb86bee77b5 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 16 May 2023 14:23:03 +0100 Subject: 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 --- util/spkmodem_recv/spkmodem-recv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'util/spkmodem_recv') 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); -- cgit v1.2.1