Skip to content

Commit

Permalink
V4L/DVB (11956): dsbr100: no need to pass curfreq value to dsbr100_se…
Browse files Browse the repository at this point in the history
…tfreq()

Small cleanup of dsbr100_setfreq(). No need to pass radio->curfreq value
to this function.

Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Alexey Klimov authored and Mauro Carvalho Chehab committed Jun 16, 2009
1 parent a617e0e commit 917fab4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/media/radio/dsbr100.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,12 @@ static int dsbr100_stop(struct dsbr100_device *radio)
}

/* set a frequency, freq is defined by v4l's TUNER_LOW, i.e. 1/16th kHz */
static int dsbr100_setfreq(struct dsbr100_device *radio, int freq)
static int dsbr100_setfreq(struct dsbr100_device *radio)
{
int retval;
int request;
int freq = (radio->curfreq / 16 * 80) / 1000 + 856;

freq = (freq / 16 * 80) / 1000 + 856;
mutex_lock(&radio->lock);

retval = usb_control_msg(radio->usbdev,
Expand Down Expand Up @@ -428,7 +428,7 @@ static int vidioc_s_frequency(struct file *file, void *priv,
radio->curfreq = f->frequency;
mutex_unlock(&radio->lock);

retval = dsbr100_setfreq(radio, radio->curfreq);
retval = dsbr100_setfreq(radio);
if (retval < 0)
dev_warn(&radio->usbdev->dev, "Set frequency failed\n");
return 0;
Expand Down

0 comments on commit 917fab4

Please sign in to comment.