Skip to content
Commit 6008dea1 authored by Yunke Cao's avatar Yunke Cao Committed by Mauro Carvalho Chehab
Browse files

media: entity: skip non-data link when removing reverse links



The original implementation removes reverse links for any input link and
assumes the presense of sink/source.
It fails when the link is a not a data link.
media_entity_remove_links when there's an ancillary link can also fail.

We only need to remove reverse links for a data link.

Signed-off-by: default avatarYunke Cao <yunkec@google.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent d8fdfc66
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment