[media] dvb-usb: don't return error if stream stop
authorMalcolm Priestley <tvboxspy@gmail.com>
Sun, 17 Apr 2011 19:55:14 +0000 (16:55 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 12:28:54 +0000 (09:28 -0300)
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/dvb-usb-dvb.c

index 965698b2d9747beb71e9e66975e7f33c4ed4a20b..b3cb626ed56e8a9f3d41748e7691be33f6f0f3fa 100644 (file)
@@ -26,9 +26,10 @@ static int dvb_usb_ctrl_feed(struct dvb_demux_feed *dvbdmxfeed, int onoff)
 
                if (adap->props.streaming_ctrl != NULL) {
                        ret = adap->props.streaming_ctrl(adap, 0);
-                       err("error while stopping stream.");
-                       if (ret < 0)
+                       if (ret < 0) {
+                               err("error while stopping stream.");
                                return ret;
+                       }
                }
        }