diff options
author | David Ellingsworth <david@identd.dyndns.org> | 2009-09-22 20:48:43 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:40:08 -0500 |
commit | d1939e4c5f053e34dd432b448e221f55586a68ec (patch) | |
tree | bc4f420dc334b3087f02d9ea6e652d23ef99ba4d /drivers/media/radio/radio-mr800.c | |
parent | 1b8bbb3c0a719f3baac22ea4a7eb1d636383ba3b (diff) |
V4L/DVB (13063): radio-mr800: remove unnecessary local variable
Remove unnecessary local variable.
Signed-off-by: David Ellingsworth <david@identd.dyndns.org>
Acked-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>
Diffstat (limited to 'drivers/media/radio/radio-mr800.c')
-rw-r--r-- | drivers/media/radio/radio-mr800.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/media/radio/radio-mr800.c b/drivers/media/radio/radio-mr800.c index 0c5d734b00fa..24c55a5a6cac 100644 --- a/drivers/media/radio/radio-mr800.c +++ b/drivers/media/radio/radio-mr800.c | |||
@@ -688,7 +688,6 @@ static int usb_amradio_probe(struct usb_interface *intf, | |||
688 | const struct usb_device_id *id) | 688 | const struct usb_device_id *id) |
689 | { | 689 | { |
690 | struct amradio_device *radio; | 690 | struct amradio_device *radio; |
691 | struct v4l2_device *v4l2_dev; | ||
692 | int retval = 0; | 691 | int retval = 0; |
693 | 692 | ||
694 | radio = kzalloc(sizeof(struct amradio_device), GFP_KERNEL); | 693 | radio = kzalloc(sizeof(struct amradio_device), GFP_KERNEL); |
@@ -707,16 +706,15 @@ static int usb_amradio_probe(struct usb_interface *intf, | |||
707 | goto err_nobuf; | 706 | goto err_nobuf; |
708 | } | 707 | } |
709 | 708 | ||
710 | v4l2_dev = &radio->v4l2_dev; | 709 | retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev); |
711 | retval = v4l2_device_register(&intf->dev, v4l2_dev); | ||
712 | if (retval < 0) { | 710 | if (retval < 0) { |
713 | dev_err(&intf->dev, "couldn't register v4l2_device\n"); | 711 | dev_err(&intf->dev, "couldn't register v4l2_device\n"); |
714 | goto err_v4l2; | 712 | goto err_v4l2; |
715 | } | 713 | } |
716 | 714 | ||
717 | strlcpy(radio->videodev.name, v4l2_dev->name, | 715 | strlcpy(radio->videodev.name, radio->v4l2_dev.name, |
718 | sizeof(radio->videodev.name)); | 716 | sizeof(radio->videodev.name)); |
719 | radio->videodev.v4l2_dev = v4l2_dev; | 717 | radio->videodev.v4l2_dev = &radio->v4l2_dev; |
720 | radio->videodev.fops = &usb_amradio_fops; | 718 | radio->videodev.fops = &usb_amradio_fops; |
721 | radio->videodev.ioctl_ops = &usb_amradio_ioctl_ops; | 719 | radio->videodev.ioctl_ops = &usb_amradio_ioctl_ops; |
722 | radio->videodev.release = usb_amradio_video_device_release; | 720 | radio->videodev.release = usb_amradio_video_device_release; |
@@ -742,7 +740,7 @@ static int usb_amradio_probe(struct usb_interface *intf, | |||
742 | return 0; | 740 | return 0; |
743 | 741 | ||
744 | err_vdev: | 742 | err_vdev: |
745 | v4l2_device_unregister(v4l2_dev); | 743 | v4l2_device_unregister(&radio->v4l2_dev); |
746 | err_v4l2: | 744 | err_v4l2: |
747 | kfree(radio->buffer); | 745 | kfree(radio->buffer); |
748 | err_nobuf: | 746 | err_nobuf: |