diff options
author | Olli Salonen <olli.salonen@iki.fi> | 2016-03-01 16:28:54 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-03-03 14:33:33 -0300 |
commit | 711f3fba6ffd3914fd1b5ed9faf8d22bab6f2203 (patch) | |
tree | ac10a13024ad6af24603635808711f52a5f0a02b /drivers/media | |
parent | 34f0693d7d772469f94d663c33ac18bc52080704 (diff) | |
download | linux-stable-711f3fba6ffd3914fd1b5ed9faf8d22bab6f2203.tar.gz linux-stable-711f3fba6ffd3914fd1b5ed9faf8d22bab6f2203.tar.bz2 linux-stable-711f3fba6ffd3914fd1b5ed9faf8d22bab6f2203.zip |
[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>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb-core/dvbdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/media/dvb-core/dvbdev.c index 1b9732ee0a4f..e1684c570e2f 100644 --- a/drivers/media/dvb-core/dvbdev.c +++ b/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; } |