1
0
Fork 0

MLK-24746: media: imx8: return directly for independent entity

Return directly for independent entity because it hasn't any links
with other entity, so needn't to do clean operation.

Signed-off-by: Guoniu.zhou <guoniu.zhou@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Guoniu.zhou 2020-09-04 16:27:29 +08:00
parent de136a4752
commit 039d271797
1 changed files with 3 additions and 0 deletions

View File

@ -177,6 +177,9 @@ static int mxc_md_do_clean(struct mxc_md *mxc_md, struct media_pad *pad)
struct media_pad *remote_pad;
struct v4l2_subdev *subdev;
if (!pad->entity->num_links)
return 0;
remote_pad = media_entity_remote_pad(pad);
if (remote_pad == NULL) {
dev_err(dev, "%s get remote pad fail\n", __func__);