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:
parent
b86356feee
commit
bfd588d1d8
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue