]> git.karo-electronics.de Git - linux-beck.git/commit
[media] media/radio/tef6862: fix checking return value of i2c_master_send
authorAxel Lin <axel.lin@gmail.com>
Wed, 16 Nov 2011 08:14:03 +0000 (05:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 24 Nov 2011 20:22:22 +0000 (18:22 -0200)
commitbd93b3ad275501f50935a420cb26f598093d91a0
treee92df5e4b4adf9e1330f76e062ae554ed8aac44d
parentaffc9a0d59ac49bd304e2137bd5e4ffdd6fdfa52
[media] media/radio/tef6862: fix checking return value of i2c_master_send

i2c_master_send returns negative errno, or else the number of bytes written.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/radio/tef6862.c