diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-02-19 18:03:54 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-02-23 11:16:06 +0100 |
commit | 55d066a4c7b9e2e0c40eaac87a741f7217af6e8b (patch) | |
tree | ecb705ddf18e489e13b4f342a8d6f5063a9cbbf9 /drivers/media/pci/saa7134 | |
parent | [media] tvp5150: don't go past decoder->input_ent array (diff) | |
download | linux-55d066a4c7b9e2e0c40eaac87a741f7217af6e8b.tar.xz linux-55d066a4c7b9e2e0c40eaac87a741f7217af6e8b.zip |
[media] saa7134: fix detection of external decoders
As warned by smatch:
drivers/media/pci/saa7134/saa7134-core.c:840 saa7134_create_entities() info: ignoring unreachable code.
drivers/media/pci/saa7134/saa7134-core.c:843 saa7134_create_entities() warn: curly braces intended?
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/pci/saa7134')
-rw-r--r-- | drivers/media/pci/saa7134/saa7134-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/pci/saa7134/saa7134-core.c b/drivers/media/pci/saa7134/saa7134-core.c index 42bc4172febd..8f3ba4077130 100644 --- a/drivers/media/pci/saa7134/saa7134-core.c +++ b/drivers/media/pci/saa7134/saa7134-core.c @@ -838,9 +838,10 @@ static void saa7134_create_entities(struct saa7134_dev *dev) /* Check if it is using an external analog TV demod */ media_device_for_each_entity(entity, dev->media_dev) { - if (entity->function == MEDIA_ENT_F_ATV_DECODER) + if (entity->function == MEDIA_ENT_F_ATV_DECODER) { decoder = entity; break; + } } /* |