]> git.ipfire.org Git - thirdparty/chrony.git/commit
rtc_linux.c: Remove useless assignment `error = -1;`
authorPaul Menzel <paulepanter@users.sourceforge.net>
Thu, 3 Oct 2013 12:37:31 +0000 (14:37 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 7 Oct 2013 14:42:03 +0000 (16:42 +0200)
commitd5a9c1535eef53a9cd8356b0aea05a8d51bbaf08
tree4a7a0a5ee942e9fecc532873a3100e43001b8531
parent169eee6792579c0cf28984a072e4e24a1eb48ff8
rtc_linux.c: Remove useless assignment `error = -1;`

The Clang static analyzer scan-build from Debian clang version 3.4-1
found the following unneeded assignment.

        rtc_linux.c:756:5: warning: Value stored to 'error' is never read
            error = 1;
            ^       ~

Indeed, if in that if branch, the function returns without ever looking
at the variable `error`. So remove the line.
rtc_linux.c