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

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



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 redhat com>
> ---
>  src/util/virtime.c | 14 ++++----------
>  1 file changed, 4 insertions(+), 10 deletions(-)
> 

ACK

Peter


Attachment: signature.asc
Description: OpenPGP digital signature


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