summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-03-18 22:31:35 +0100
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-05-07 15:56:55 +0200
commitacc37e8f86a8f2a3e1d1dc97d99b7625ccc95424 (patch)
treec1bf41e1268d76475c97796abb7a076b9ec343d3 /drivers
parent[media] media: rc: reduce size of struct ir_raw_event (diff)
downloadlinux-acc37e8f86a8f2a3e1d1dc97d99b7625ccc95424.tar.xz
linux-acc37e8f86a8f2a3e1d1dc97d99b7625ccc95424.zip
[media] media/dvb-core: forward media_create_pad_links() return value
Instead of always return -ENOMEM, return the real error that should come from media_create_pad_link(). Signed-off-by: Max Kellermann <max@duempel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb-core/dvbdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/media/dvb-core/dvbdev.c
index e1684c570e2f..75a3f4b57fd4 100644
--- a/drivers/media/dvb-core/dvbdev.c
+++ b/drivers/media/dvb-core/dvbdev.c
@@ -676,13 +676,13 @@ int dvb_create_media_graph(struct dvb_adapter *adap,
demux, 0, MEDIA_LNK_FL_ENABLED,
false);
if (ret)
- return -ENOMEM;
+ return ret;
}
if (demux && ca) {
ret = media_create_pad_link(demux, 1, ca,
0, MEDIA_LNK_FL_ENABLED);
if (ret)
- return -ENOMEM;
+ return ret;
}
/* Create demux links for each ringbuffer/pad */