Re: [PATCH 2/8] virtime: Resolve Coverity DEADCODE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/13/14 15:27, John Ferlan wrote:
> 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
> 
> Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx>
> ---
>  src/util/virtime.c | 14 ++++----------
>  1 file changed, 4 insertions(+), 10 deletions(-)
> 

ACK

Peter


Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]