diff options
| author | Hans Verkuil <[email protected]> | 2020-02-04 18:19:22 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2020-02-24 14:10:04 +0000 |
| commit | 044041cd5227ec9ccf969f4bf1cc08bffe13b9d3 (patch) | |
| tree | 202e1fc96d6097fc8912594604284ce955f3393b /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | media: v4l2-mem2mem.c: fix broken links (diff) | |
| download | kernel-044041cd5227ec9ccf969f4bf1cc08bffe13b9d3.tar.gz kernel-044041cd5227ec9ccf969f4bf1cc08bffe13b9d3.zip | |
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 <[email protected]>
Cc: <[email protected]> # for v5.3 and up
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
