libcamera: v4l2_device: Remove unused set of ret
The last assignment of the ret variable in getControls() is not consumed so it's unnecessary to set it. This likely originates from a similar code flow in setControls() where the ret variable is later consumed. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -243,7 +243,6 @@ ControlList V4L2Device::getControls(const std::vector<uint32_t> &ids)
|
||||
LOG(V4L2, Error) << "Unable to read control " << errorIdx
|
||||
<< ": " << strerror(-ret);
|
||||
count = errorIdx - 1;
|
||||
ret = errorIdx;
|
||||
}
|
||||
|
||||
updateControls(&ctrls, v4l2Ctrls, count);
|
||||
|
||||
Reference in New Issue
Block a user