From: Karel Zak Date: Thu, 2 Feb 2012 13:26:04 +0000 (+0100) Subject: hwclock: remove never read value X-Git-Tag: v2.21-rc2~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23341bd4d960bf5300f3374364ee93f1a06ecec3;p=thirdparty%2Futil-linux.git hwclock: remove never read value Signed-off-by: Karel Zak --- diff --git a/hwclock/hwclock.c b/hwclock/hwclock.c index 1a430ada29..4da2dca791 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);