diff mbox

cx231xx: cleanup dvb_attach() return value handling

Message ID 4B51E7A7.8000507@freemail.hu (mailing list archive)
State Accepted
Headers show

Commit Message

Németh Márton Jan. 16, 2010, 4:21 p.m. UTC
None
diff mbox

Patch

diff -r 5bcdcc072b6d linux/drivers/media/video/cx231xx/cx231xx-dvb.c
--- a/linux/drivers/media/video/cx231xx/cx231xx-dvb.c	Sat Jan 16 07:25:43 2010 +0100
+++ b/linux/drivers/media/video/cx231xx/cx231xx-dvb.c	Sat Jan 16 17:21:06 2010 +0100
@@ -465,9 +465,9 @@ 
 		/* define general-purpose callback pointer */
 		dvb->frontend->callback = cx231xx_tuner_callback;

-		if (dvb_attach(xc5000_attach, dev->dvb->frontend,
+		if (!dvb_attach(xc5000_attach, dev->dvb->frontend,
 			       &dev->i2c_bus[1].i2c_adap,
-			       &cnxt_rde250_tunerconfig) < 0) {
+			       &cnxt_rde250_tunerconfig)) {
 			result = -EINVAL;
 			goto out_free;
 		}
@@ -487,9 +487,9 @@ 
 		/* define general-purpose callback pointer */
 		dvb->frontend->callback = cx231xx_tuner_callback;

-		if (dvb_attach(xc5000_attach, dev->dvb->frontend,
+		if (!dvb_attach(xc5000_attach, dev->dvb->frontend,
 			       &dev->i2c_bus[1].i2c_adap,
-			       &cnxt_rde250_tunerconfig) < 0) {
+			       &cnxt_rde250_tunerconfig)) {
 			result = -EINVAL;
 			goto out_free;
 		}