Commit 7d8d59f2 authored by Sakari Ailus's avatar Sakari Ailus Committed by Mauro Carvalho Chehab

media: ccs: The functions to get compose or crop rectangle never return NULL

The NULL check is not needed as the functions do not return NULL. Remove
the check (and BUG).
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 6a097098
...@@ -1766,16 +1766,12 @@ static void ccs_get_crop_compose(struct v4l2_subdev *subdev, ...@@ -1766,16 +1766,12 @@ static void ccs_get_crop_compose(struct v4l2_subdev *subdev,
*comps = &ssd->compose; *comps = &ssd->compose;
} else { } else {
if (crops) { if (crops) {
for (i = 0; i < subdev->entity.num_pads; i++) { for (i = 0; i < subdev->entity.num_pads; i++)
crops[i] = v4l2_subdev_get_try_crop(subdev, cfg, i); crops[i] = v4l2_subdev_get_try_crop(subdev, cfg, i);
BUG_ON(!crops[i]);
}
} }
if (comps) { if (comps)
*comps = v4l2_subdev_get_try_compose(subdev, cfg, *comps = v4l2_subdev_get_try_compose(subdev, cfg,
CCS_PAD_SINK); CCS_PAD_SINK);
BUG_ON(!*comps);
}
} }
} }
......
Markdown is supported
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