mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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:
@@ -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 { \
|
||||
|
||||
Reference in New Issue
Block a user