edid-decode: simplify the 'first SVD is preferred' test

If the number of reported native timings in the CTA extension is
0, then the first SVD (if any) is preferred. There is no need to
check if the timings of the first DTD and the first SVD match, in
either case you can pick the first SVD as the preferred timing.

With this change the match_timings function can be dropped.

Signed-off-by: Hans Verkuil <[email protected]>
3 files changed