util: virTimeFieldsThenRaw never returns negative

virTimeFieldsThenRaw will never return negative result, so I clean up
the related meaningless judgements to make it better.

Signed-off-by: James <james.wangyufei@huawei.com>
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
James
2014-07-25 16:13:57 +08:00
committed by Martin Kletzander
parent ccdf708245
commit febfe83721
4 changed files with 11 additions and 35 deletions

View File

@@ -44,8 +44,7 @@ static int testTimeFields(const void *args)
const struct testTimeFieldsData *data = args;
struct tm actual;
if (virTimeFieldsThen(data->when, &actual) < 0)
return -1;
virTimeFieldsThen(data->when, &actual);
#define COMPARE(field) \
do { \