From: Malcolm Priestley Date: Sun, 17 Apr 2011 19:55:14 +0000 (-0300) Subject: [media] dvb-usb: don't return error if stream stop X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=dca6b74bb332f6aa52bd2a6efc464233e542297b;p=openwrt%2Fstaging%2Fblogic.git [media] dvb-usb: don't return error if stream stop Signed-off-by: Malcolm Priestley Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c b/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c index 965698b2d974..b3cb626ed56e 100644 --- a/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c +++ b/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c @@ -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; + } } }