Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55d066a4 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[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: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 60ad7689
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -838,10 +838,11 @@ static void saa7134_create_entities(struct saa7134_dev *dev)


	/* Check if it is using an external analog TV demod */
	/* Check if it is using an external analog TV demod */
	media_device_for_each_entity(entity, dev->media_dev) {
	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;
			decoder = entity;
			break;
			break;
		}
		}
	}


	/*
	/*
	 * saa713x is not using an external ATV demod.
	 * saa713x is not using an external ATV demod.