summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-20 22:33:48 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-23 13:14:02 +0200
commitd6f5621e1501d236e0e1762e5cd055eb3c8af25d (patch)
tree92524afce668392b508ae85037179113aab15884
parentcb78b9e4c744a7bb67aca3150c0fb82f8925ff62 (diff)
Revert "libcamera: controls: Don't over-optimize ControlValue layout"
This is a partial revert of commit 0028536d70c7, removing a change that was incorrectly squashed. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r--src/libcamera/device_enumerator_udev.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcamera/device_enumerator_udev.cpp b/src/libcamera/device_enumerator_udev.cpp
index f5a482e3..87638c59 100644
--- a/src/libcamera/device_enumerator_udev.cpp
+++ b/src/libcamera/device_enumerator_udev.cpp
@@ -90,8 +90,7 @@ int DeviceEnumeratorUdev::addUdevDevice(struct udev_device *dev)
return ret;
}
- if (!ret)
- addDevice(media);
+ addDevice(media);
return 0;
}