V4L/DVB: si470x: -EINVAL overwritten in si470x_vidioc_s_tuner()
authorTobias Lorenz <tobias.lorenz@gmx.net>
Sat, 10 Jul 2010 16:01:33 +0000 (13:01 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 19:42:44 +0000 (16:42 -0300)
commit73c994e4fb69b7bb85663e5175432c307657d207
treea7654313065ded316c25bbeba7af3d6caa11bb43
parent22b0766b62d517a597d8155d828c5f93e3523cfa
V4L/DVB:  si470x: -EINVAL overwritten in si470x_vidioc_s_tuner()

This patch to the si470x_vidioc_s_tuner function was developed in
cooperation with Roel Kluin <roel.kluin@gmail.com>. It sets the default
retval to 0 instead of -EINVAL, identical to what is done in all other
set/get functions of v4l2_ioctl_ops. This is just as cosmetic change, as
retval is directly overwritten by the si470x_disconnect_check() anyway.

Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/radio/si470x/radio-si470x-common.c