]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
rtc: remove unnecessary variable initializations
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 29 Nov 2021 10:55:24 +0000 (11:55 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 1 Dec 2021 08:22:26 +0000 (09:22 +0100)
rtc_linux.c

index c95c06e32cea3bfae866fa4563abae86e62d7d3e..1851ecbdcabecc53a3178b7d8bb4c73b50ecaf1c 100644 (file)
@@ -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;
 
 /* ================================================== */