]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hwclock: remove never read value
authorKarel Zak <kzak@redhat.com>
Thu, 2 Feb 2012 13:26:04 +0000 (14:26 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 2 Feb 2012 13:26:04 +0000 (14:26 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
hwclock/hwclock.c

index 1a430ada29c947fd9b58516ceead9451cd90d9b8..4da2dca791ac8413b46c06cd3ee1e88a57e7bcd0 100644 (file)
@@ -1171,7 +1171,7 @@ manipulate_clock(const bool show, const bool adjust, const bool noadjfile,
         */
        time_t hclocktime = 0;
        /* local return code */
-       int rc;
+       int rc = 0;
 
        if (!systz && !predict) {
                no_auth = ur->get_permissions();
@@ -1187,7 +1187,6 @@ manipulate_clock(const bool show, const bool adjust, const bool noadjfile,
        } else {
                /* A little trick to avoid reading the file if we don't have to */
                adjtime.dirty = FALSE;
-               rc = 0;
        }
 
        universal = hw_clock_is_utc(utc, local_opt, adjtime);