media: starfive: Initialize struct v4l2_subdev_format

Initialize struct v4l2_subdev_format make the stream be zero.

Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
This commit is contained in:
Changhuang Liang 2024-03-28 09:35:03 +08:00
parent 191e5e2591
commit 135cf4ee02

View file

@ -1266,7 +1266,7 @@ static int isp_match_sensor_format_get_index(struct stf_isp_dev *isp_dev)
int ret, idx;
struct media_entity *sensor;
struct v4l2_subdev *subdev;
struct v4l2_subdev_format fmt;
struct v4l2_subdev_format fmt = { 0 };
const struct isp_format_table *formats;
if (!isp_dev)