linux/drivers/media/dvb
Xi Wang 34817174fc [media] lgdt330x: fix signedness error in i2c_read_demod_bytes()
The error handling in lgdt3303_read_status() and lgdt330x_read_ucblocks()
doesn't work, because i2c_read_demod_bytes() returns a u8 and (err < 0)
is always false.

        err = i2c_read_demod_bytes(state, 0x58, buf, 1);
        if (err < 0)
                return err;

Change the return type of i2c_read_demod_bytes() to int.  Also change
the return value on error to -EIO to make (err < 0) work.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-03-08 09:01:12 -03:00
..
b2c2 Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2012-01-15 12:49:56 -08:00
bt8xx [media] dvb-bt8xx: convert printks to pr_err() 2012-01-07 11:53:35 -02:00
ddbridge [media] cx18/ddbridge: remove unused headers 2012-02-14 13:44:52 -02:00
dm1105 [media] dm1105: release dvbnet on frontend attachment failure 2012-01-07 11:54:03 -02:00
dvb-core [media] dvb-core: fix DVBFE_ALGO_HW retune bug 2012-02-14 17:15:25 -02:00
dvb-usb [media] it913x-fe ver 1.15 read signal strenght using reg VAR_P_INBAND 2012-03-08 08:53:39 -03:00
firewire [media] firedtv: handle errors from dvb_net_init 2012-01-06 12:51:26 -02:00
frontends [media] lgdt330x: fix signedness error in i2c_read_demod_bytes() 2012-03-08 09:01:12 -03:00
mantis [media] [trivial] mantis: Fix typo in mantis_hif.c 2012-02-27 08:47:04 -03:00
ngene [media] drxk: Don't assume a default firmware name 2012-01-21 13:45:25 -02:00
pluto2 [media] tuners: remove dvb_frontend_parameters from set_params() 2011-12-31 08:57:29 -02:00
pt1 [media] dvb: Remove ops->info.type from frontends 2012-01-04 17:30:34 -02:00
siano Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2012-01-15 12:49:56 -08:00
ttpci [media] av7110: convert set_fontend to use DVBv5 parameters 2011-12-31 09:15:04 -02:00
ttusb-budget Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2012-01-15 12:49:56 -08:00
ttusb-dec Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2012-01-15 12:49:56 -08:00
Kconfig [media] ddbridge: Allow compiling of the driver 2011-07-27 17:55:45 -03:00
Makefile [media] ddbridge: Allow compiling of the driver 2011-07-27 17:55:45 -03:00