linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] media/dvb-core: fix inverted check
@ 2016-03-18 21:31 Max Kellermann
  2016-03-18 21:31 ` [PATCH 2/2] media/dvb-core: forward media_create_pad_links() return value Max Kellermann
  2016-03-21  6:39 ` [PATCH 1/2] media/dvb-core: fix inverted check Olli Salonen
  0 siblings, 2 replies; 3+ messages in thread
From: Max Kellermann @ 2016-03-18 21:31 UTC (permalink / raw)
  To: linux-kernel, linux-media

Breakage caused by commit f50d51661a

Signed-off-by: Max Kellermann <max@duempel.org>
---
 drivers/media/dvb-core/dvbdev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/media/dvb-core/dvbdev.c
index 560450a..c756d4b 100644
--- a/drivers/media/dvb-core/dvbdev.c
+++ b/drivers/media/dvb-core/dvbdev.c
@@ -682,7 +682,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;
 	}
 

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] media/dvb-core: forward media_create_pad_links() return value
  2016-03-18 21:31 [PATCH 1/2] media/dvb-core: fix inverted check Max Kellermann
@ 2016-03-18 21:31 ` Max Kellermann
  2016-03-21  6:39 ` [PATCH 1/2] media/dvb-core: fix inverted check Olli Salonen
  1 sibling, 0 replies; 3+ messages in thread
From: Max Kellermann @ 2016-03-18 21:31 UTC (permalink / raw)
  To: linux-kernel, linux-media

Signed-off-by: Max Kellermann <max@duempel.org>
---
 drivers/media/dvb-core/dvbdev.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/media/dvb-core/dvbdev.c
index c756d4b..96de2fa 100644
--- a/drivers/media/dvb-core/dvbdev.c
+++ b/drivers/media/dvb-core/dvbdev.c
@@ -677,13 +677,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 */

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] media/dvb-core: fix inverted check
  2016-03-18 21:31 [PATCH 1/2] media/dvb-core: fix inverted check Max Kellermann
  2016-03-18 21:31 ` [PATCH 2/2] media/dvb-core: forward media_create_pad_links() return value Max Kellermann
@ 2016-03-21  6:39 ` Olli Salonen
  1 sibling, 0 replies; 3+ messages in thread
From: Olli Salonen @ 2016-03-21  6:39 UTC (permalink / raw)
  To: Max Kellermann; +Cc: linux-kernel, linux-media

Hi Max,

Already in the tree:
http://git.linuxtv.org/media_tree.git/commit/drivers/media/dvb-core?id=711f3fba6ffd3914fd1b5ed9faf8d22bab6f2203

Cheers,
-olli

On 18 March 2016 at 23:31, Max Kellermann <max@duempel.org> wrote:
> Breakage caused by commit f50d51661a
>
> Signed-off-by: Max Kellermann <max@duempel.org>
> ---
>  drivers/media/dvb-core/dvbdev.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/media/dvb-core/dvbdev.c
> index 560450a..c756d4b 100644
> --- a/drivers/media/dvb-core/dvbdev.c
> +++ b/drivers/media/dvb-core/dvbdev.c
> @@ -682,7 +682,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;
>         }
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-03-21  6:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-18 21:31 [PATCH 1/2] media/dvb-core: fix inverted check Max Kellermann
2016-03-18 21:31 ` [PATCH 2/2] media/dvb-core: forward media_create_pad_links() return value Max Kellermann
2016-03-21  6:39 ` [PATCH 1/2] media/dvb-core: fix inverted check Olli Salonen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).