v4l2-compliance: remove incorrect timings test.
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 13 Jun 2012 12:09:37 +0000 (14:09 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Wed, 13 Jun 2012 12:09:37 +0000 (14:09 +0200)
The 'reserved' field is a union with a struct. So don't test whether 'reserved'
was zeroed.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/v4l2-compliance/v4l2-test-io-config.cpp

index 907c37f..257d4d1 100644 (file)
@@ -241,8 +241,6 @@ static int checkTimings(struct node *node, bool has_timings)
 
        memset(&timings, 0xff, sizeof(timings));
        ret = doioctl(node, VIDIOC_G_DV_TIMINGS, &timings);
-       if (!ret && check_0(timings.reserved, sizeof(timings.reserved)))
-               return fail("reserved not zeroed\n");
        if (ret && has_timings)
                return fail("TIMINGS cap set, but could not get current custom timings\n");
        if (!ret && !has_timings)