diff mbox

V4L/DVB: cx23885: reversed condition in dvb_register()

Message ID 20100605120529.GK5483@bicker (mailing list archive)
State Superseded
Headers show

Commit Message

Dan Carpenter June 5, 2010, 12:05 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/media/video/cx23885/cx23885-dvb.c b/drivers/media/video/cx23885/cx23885-dvb.c
index 0a199d7..bf7c328 100644
--- a/drivers/media/video/cx23885/cx23885-dvb.c
+++ b/drivers/media/video/cx23885/cx23885-dvb.c
@@ -991,7 +991,7 @@  static int dvb_register(struct cx23885_tsport *port)
 	ret = videobuf_dvb_register_bus(&port->frontends, THIS_MODULE, port,
 					&dev->pci->dev, adapter_nr, 0,
 					cx23885_dvb_fe_ioctl_override);
-	if (!ret)
+	if (ret < 0)
 		return ret;
 
 	/* init CI & MAC */