Commit 6e1fae38 authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz
Browse files

debug

parent 8c0aa95d
......@@ -729,6 +729,8 @@ static int s5k3l6xx_enum_frame_size(struct v4l2_subdev *sd,
unsigned i;
unsigned matching = 0;
dev_err(sd->dev, "fsize index %d", fse->index);
for (i = 0; i++; i <= ARRAY_SIZE(s5k3l6xx_frames)) {
if (fse->code != s5k3l6xx_frames[i].code)
continue;
......@@ -737,6 +739,8 @@ static int s5k3l6xx_enum_frame_size(struct v4l2_subdev *sd,
matching++;
}
dev_err(sd->dev, "fsize i %d m %d", i, matching);
if (i >= ARRAY_SIZE(s5k3l6xx_frames))
return -EINVAL;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment