Re: [PATCH] radio-si470x-common: -EINVAL overwritten in si470x_vidioc_s_tuner()

2010-02-23 Thread Mauro Carvalho Chehab
Tobias Lorenz wrote: > Hello Mauro, > >>> no, the default value of retval makes no difference to the function. >>> >>> Retval is set by si470x_disconnect_check and si470x_set_register. >>> After each call, retval is checked. >>> There is no need to reset it passed. > >> You may just do then: >> >

Re: [PATCH] radio-si470x-common: -EINVAL overwritten in si470x_vidioc_s_tuner()

2010-02-18 Thread Tobias Lorenz
Hello Mauro, > > no, the default value of retval makes no difference to the function. > > > > Retval is set by si470x_disconnect_check and si470x_set_register. > > After each call, retval is checked. > > There is no need to reset it passed. > You may just do then: > > int retval = si470x_

Re: [PATCH] radio-si470x-common: -EINVAL overwritten in si470x_vidioc_s_tuner()

2010-02-03 Thread Mauro Carvalho Chehab
Tobias Lorenz wrote: > Hello Roel, > > no, the default value of retval makes no difference to the function. > > Retval is set by si470x_disconnect_check and si470x_set_register. > After each call, retval is checked. > There is no need to reset it passed. > > The only reason, there is a default v

Re: [PATCH] radio-si470x-common: -EINVAL overwritten in si470x_vidioc_s_tuner()

2010-02-03 Thread Tobias Lorenz
Hello Roel, no, the default value of retval makes no difference to the function. Retval is set by si470x_disconnect_check and si470x_set_register. After each call, retval is checked. There is no need to reset it passed. The only reason, there is a default value is my static code checker, saying

[PATCH] radio-si470x-common: -EINVAL overwritten in si470x_vidioc_s_tuner()

2010-02-03 Thread Roel Kluin
The -EINVAL was overwritten by the si470x_disconnect_check(). Signed-off-by: Roel Kluin --- Is this needed? diff --git a/drivers/media/radio/si470x/radio-si470x-common.c b/drivers/media/radio/si470x/radio-si470x-common.c index 4da0f15..65b4a92 100644 --- a/drivers/media/radio/si470x/radio-si470