Browse Source

[media] dvb-core: fix return code checking for devices with CA

The test for the return code was mistakenly inverted. This caused DVB
devices with CA module to fail on modprobe.

Tested with TechnoTrend CT2-4650 CI USB tuner.

Signed-off-by: Olli Salonen <olli.salonen@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Olli Salonen 9 năm trước cách đây
mục cha
commit
711f3fba6f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      drivers/media/dvb-core/dvbdev.c

+ 1 - 1
drivers/media/dvb-core/dvbdev.c

@@ -681,7 +681,7 @@ int dvb_create_media_graph(struct dvb_adapter *adap,
 	if (demux && ca) {
 		ret = media_create_pad_link(demux, 1, ca,
 					    0, MEDIA_LNK_FL_ENABLED);
-		if (!ret)
+		if (ret)
 			return -ENOMEM;
 	}