diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2020-02-04 21:19:22 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-02-24 17:10:04 +0300 |
commit | 044041cd5227ec9ccf969f4bf1cc08bffe13b9d3 (patch) | |
tree | 202e1fc96d6097fc8912594604284ce955f3393b /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 316e730f1d8bb029fe6cec2468fb2a50424485b3 (diff) | |
download | linux-044041cd5227ec9ccf969f4bf1cc08bffe13b9d3.tar.xz |
media: mc-entity.c: use & to check pad flags, not ==
These are bits so to test if a pad is a sink you use & but not ==.
It looks like the only reason this hasn't caused problems before is that
media_get_pad_index() is currently only used with pads that do not set the
MEDIA_PAD_FL_MUST_CONNECT flag. So a pad really had only the SINK or SOURCE
flag set and nothing else.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: <stable@vger.kernel.org> # for v5.3 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions