]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virtime: Resolve Coverity DEADCODE
authorJohn Ferlan <jferlan@redhat.com>
Thu, 11 Sep 2014 21:29:18 +0000 (17:29 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 15 Sep 2014 14:44:27 +0000 (10:44 -0400)
commitf26e6397b30b7e4fa6018724119e07b9771ddcdd
tree3173bbf8216d5c19ef8760b50bd2123729b8f979
parent9545d062c7b3ac06e7af6db91a05659a6a296a3e
virtime: Resolve Coverity DEADCODE

Coverity complains that because of how 'offset' is initialized to
0 (zero), the resulting math and comparison on rem is pointless.

According to the origin commit id '3ec128989', the code is a
replacement for gmtime(), but without the localtime() or GMT
calculations - so just remove this code and add a comment
indicating the removal
src/util/virtime.c