[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>
This commit is contained in:
Max Kellermann 2016-03-18 18:31:35 -03:00 коммит произвёл Mauro Carvalho Chehab
Родитель 5f61ff8611
Коммит acc37e8f86
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -676,13 +676,13 @@ int dvb_create_media_graph(struct dvb_adapter *adap,
demux, 0, MEDIA_LNK_FL_ENABLED, demux, 0, MEDIA_LNK_FL_ENABLED,
false); false);
if (ret) if (ret)
return -ENOMEM; return ret;
} }
if (demux && ca) { if (demux && ca) {
ret = media_create_pad_link(demux, 1, ca, ret = media_create_pad_link(demux, 1, ca,
0, MEDIA_LNK_FL_ENABLED); 0, MEDIA_LNK_FL_ENABLED);
if (ret) if (ret)
return -ENOMEM; return ret;
} }
/* Create demux links for each ringbuffer/pad */ /* Create demux links for each ringbuffer/pad */