drivers: video: fix uninitialized variables
Fix the build error by initializing the variables before we perform th querry for the ext control. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
parent
02ad0e9094
commit
8fdfb745d6
@ -1035,8 +1035,14 @@ static int video_queryctrl(FAR struct v4l2_queryctrl *ctrl)
|
||||
|
||||
/* Replace to VIDIOC_QUERY_EXT_CTRL format */
|
||||
|
||||
ext_ctrl.ctrl_class = ctrl->ctrl_class;
|
||||
ext_ctrl.id = ctrl->id;
|
||||
ext_ctrl.ctrl_class = ctrl->ctrl_class;
|
||||
ext_ctrl.id = ctrl->id;
|
||||
ext_ctrl.type = ctrl->type;
|
||||
ext_ctrl.minimum = ctrl->minimum;
|
||||
ext_ctrl.maximum = ctrl->maximum;
|
||||
ext_ctrl.step = ctrl->step;
|
||||
ext_ctrl.default_value = ctrl->default_value;
|
||||
ext_ctrl.flags = ctrl->flags;
|
||||
|
||||
ret = video_query_ext_ctrl(&ext_ctrl);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user