From fc28e9ae5659b94fca2fa3e5b13b02c0e9cade4c Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 29 Nov 2021 11:55:24 +0100 Subject: [PATCH] rtc: remove unnecessary variable initializations --- rtc_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtc_linux.c b/rtc_linux.c index c95c06e..1851ecb 100644 --- a/rtc_linux.c +++ b/rtc_linux.c @@ -64,7 +64,7 @@ static OperatingMode operating_mode = OM_NORMAL; /* ================================================== */ -static int fd = -1; +static int fd; #define LOWEST_MEASUREMENT_PERIOD 15 #define HIGHEST_MEASUREMENT_PERIOD 480 @@ -145,7 +145,7 @@ static double file_ref_offset, file_rate_ppm; /* ================================================== */ /* Flag to remember whether to assume the RTC is running on UTC */ -static int rtc_on_utc = 1; +static int rtc_on_utc; /* ================================================== */