diff options
author | Márton Németh <nm127@freemail.hu> | 2010-01-16 11:21:59 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:10:46 -0500 |
commit | d5abcc784ff337fbe9c6bc03235baecfd25191e5 (patch) | |
tree | 8d768adbc056fb946bceb2db66e9e41de7a02d09 /drivers/media | |
parent | 6e3924aa8dad3ac7d5cbfb4e27b6cdd2dc7b7e68 (diff) |
V4L/DVB: cx231xx: cleanup dvb_attach() return value handling
Remove the following sparse error (see "make C=1"):
* error: incompatible types for operation (<)
left side has type struct dvb_frontend *
right side has type int
Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/cx231xx/cx231xx-dvb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-dvb.c b/drivers/media/video/cx231xx/cx231xx-dvb.c index c5082a4e8ced..64e025e2bdf1 100644 --- a/drivers/media/video/cx231xx/cx231xx-dvb.c +++ b/drivers/media/video/cx231xx/cx231xx-dvb.c | |||
@@ -464,9 +464,9 @@ static int dvb_init(struct cx231xx *dev) | |||
464 | /* define general-purpose callback pointer */ | 464 | /* define general-purpose callback pointer */ |
465 | dvb->frontend->callback = cx231xx_tuner_callback; | 465 | dvb->frontend->callback = cx231xx_tuner_callback; |
466 | 466 | ||
467 | if (dvb_attach(xc5000_attach, dev->dvb->frontend, | 467 | if (!dvb_attach(xc5000_attach, dev->dvb->frontend, |
468 | &dev->i2c_bus[1].i2c_adap, | 468 | &dev->i2c_bus[1].i2c_adap, |
469 | &cnxt_rde250_tunerconfig) < 0) { | 469 | &cnxt_rde250_tunerconfig)) { |
470 | result = -EINVAL; | 470 | result = -EINVAL; |
471 | goto out_free; | 471 | goto out_free; |
472 | } | 472 | } |
@@ -486,9 +486,9 @@ static int dvb_init(struct cx231xx *dev) | |||
486 | /* define general-purpose callback pointer */ | 486 | /* define general-purpose callback pointer */ |
487 | dvb->frontend->callback = cx231xx_tuner_callback; | 487 | dvb->frontend->callback = cx231xx_tuner_callback; |
488 | 488 | ||
489 | if (dvb_attach(xc5000_attach, dev->dvb->frontend, | 489 | if (!dvb_attach(xc5000_attach, dev->dvb->frontend, |
490 | &dev->i2c_bus[1].i2c_adap, | 490 | &dev->i2c_bus[1].i2c_adap, |
491 | &cnxt_rde250_tunerconfig) < 0) { | 491 | &cnxt_rde250_tunerconfig)) { |
492 | result = -EINVAL; | 492 | result = -EINVAL; |
493 | goto out_free; | 493 | goto out_free; |
494 | } | 494 | } |