diff options
Diffstat (limited to 'drivers/media/radio')
-rw-r--r-- | drivers/media/radio/radio-mr800.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/media/radio/radio-mr800.c b/drivers/media/radio/radio-mr800.c index 5506fac5fd49..4064109c4205 100644 --- a/drivers/media/radio/radio-mr800.c +++ b/drivers/media/radio/radio-mr800.c | |||
@@ -235,6 +235,7 @@ static int amradio_setfreq(struct amradio_device *radio, int freq) | |||
235 | if (retval < 0 || size != BUFFER_LENGTH) | 235 | if (retval < 0 || size != BUFFER_LENGTH) |
236 | goto out_err; | 236 | goto out_err; |
237 | 237 | ||
238 | radio->curfreq = freq; | ||
238 | goto out; | 239 | goto out; |
239 | 240 | ||
240 | out_err: | 241 | out_err: |
@@ -371,13 +372,8 @@ static int vidioc_s_frequency(struct file *file, void *priv, | |||
371 | struct v4l2_frequency *f) | 372 | struct v4l2_frequency *f) |
372 | { | 373 | { |
373 | struct amradio_device *radio = file->private_data; | 374 | struct amradio_device *radio = file->private_data; |
374 | int retval = 0; | ||
375 | |||
376 | radio->curfreq = f->frequency; | ||
377 | 375 | ||
378 | retval = amradio_setfreq(radio, radio->curfreq); | 376 | return amradio_setfreq(radio, f->frequency); |
379 | |||
380 | return retval; | ||
381 | } | 377 | } |
382 | 378 | ||
383 | /* vidioc_g_frequency - get tuner radio frequency */ | 379 | /* vidioc_g_frequency - get tuner radio frequency */ |