mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
media: rockchip: isp: fix init format for struct no clean
Change-Id: I95d3ed7fdcab9347909d0c21bee6084a852ff878 Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
@@ -394,6 +394,8 @@ static int _set_pipeline_default_fmt(struct rkisp_device *dev)
|
||||
struct v4l2_subdev_selection sel;
|
||||
u32 i, width, height, code;
|
||||
|
||||
memset(&sel, 0, sizeof(sel));
|
||||
memset(&fmt, 0, sizeof(fmt));
|
||||
isp = &dev->isp_sdev.sd;
|
||||
|
||||
if (dev->active_sensor)
|
||||
|
||||
@@ -198,6 +198,7 @@ int rkisp_align_sensor_resolution(struct rkisp_device *dev,
|
||||
if (!crop)
|
||||
return -EINVAL;
|
||||
|
||||
memset(&sel, 0, sizeof(sel));
|
||||
switch (dev->isp_ver) {
|
||||
case ISP_V12:
|
||||
w = clamp_t(u32, src_w,
|
||||
|
||||
Reference in New Issue
Block a user