aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-02-14 15:17:56 (GMT)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-02-14 15:17:56 (GMT)
commit59f9840781aab464c1331dcdb82e63dd0544b5c6 (patch)
tree6455ff5db801f6256c77c5de23342eaf431cc83c
parentaa371c995ec2ad70323db00c47b3132002b060b7 (diff)
v4l2-compliance: remove duplicate MEDIA_IOC_DEVICE_INFO ioctl call
The MEDIA_IOC_DEVICE_INFO ioctl is called twice, discarding the result of the first call. Just remove the first call, looks to be a left-over from some debug code. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/v4l2-compliance/v4l2-compliance.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/utils/v4l2-compliance/v4l2-compliance.cpp b/utils/v4l2-compliance/v4l2-compliance.cpp
index 7ad8d10..55e8d36 100644
--- a/utils/v4l2-compliance/v4l2-compliance.cpp
+++ b/utils/v4l2-compliance/v4l2-compliance.cpp
@@ -807,7 +807,6 @@ static int open_media_bus_info(const std::string &bus_info, std::string &media_d
int fd = open(media_devname.c_str(), O_RDWR);
if (fd < 0)
continue;
- ioctl(fd, MEDIA_IOC_DEVICE_INFO, &mdi);
if (!ioctl(fd, MEDIA_IOC_DEVICE_INFO, &mdi) &&
bus_info == mdi.bus_info) {
closedir(dp);

Privacy Policy