summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorXi Wang <xi.wang@gmail.com>2012-02-14 14:32:41 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-03-08 09:01:12 -0300
commit34817174fca0c5512c2d5b6ea0fc37a0337ce1d8 (patch)
treec5dccf4f4b2350089e13d1173d1854382aff7d52 /tools/perf/scripts/python/bin
parentbdb2c41fc12b627e0e870b141341ded5772bab70 (diff)
[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>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions