summaryrefslogtreecommitdiffstats
path: root/hwclock/hwclock.c
diff options
context:
space:
mode:
authorKarel Zak2012-02-02 14:26:04 +0100
committerKarel Zak2012-02-02 14:26:04 +0100
commit23341bd4d960bf5300f3374364ee93f1a06ecec3 (patch)
treefcec3255532966c3bbde81e67241c87de6301f65 /hwclock/hwclock.c
parenthwclock: clean usage, remove redundat code (diff)
downloadkernel-qcow2-util-linux-23341bd4d960bf5300f3374364ee93f1a06ecec3.tar.gz
kernel-qcow2-util-linux-23341bd4d960bf5300f3374364ee93f1a06ecec3.tar.xz
kernel-qcow2-util-linux-23341bd4d960bf5300f3374364ee93f1a06ecec3.zip
hwclock: remove never read value
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'hwclock/hwclock.c')
-rw-r--r--hwclock/hwclock.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hwclock/hwclock.c b/hwclock/hwclock.c
index 1a430ada2..4da2dca79 100644
--- a/hwclock/hwclock.c
+++ b/hwclock/hwclock.c
@@ -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);