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
parent
de136a4752
commit
039d271797
|
@ -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__);
|
||||
|
|
Loading…
Reference in New Issue