diff options
author | Mike Isely <isely@pobox.com> | 2011-03-13 21:18:23 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-22 03:54:36 -0400 |
commit | 228ee5928b5d4192a23cda3fdf755a956516c13e (patch) | |
tree | 524ca6c8a17f90bac5e4fc9d5c6c1b0c776f6ca4 | |
parent | 43823c02245a445b5669d43b1ec07b6d8ae710f5 (diff) |
[media] pvrusb2: Remove dead code
This was caught via a compiler warning. Amazingly enough this bit of
benign dreck dates all the way back to 2008.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-v4l2.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c index 58617fc656c2..38761142a4d9 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c +++ b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c | |||
@@ -795,12 +795,10 @@ static long pvr2_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg) | |||
795 | case VIDIOC_S_CROP: | 795 | case VIDIOC_S_CROP: |
796 | { | 796 | { |
797 | struct v4l2_crop *crop = (struct v4l2_crop *)arg; | 797 | struct v4l2_crop *crop = (struct v4l2_crop *)arg; |
798 | struct v4l2_cropcap cap; | ||
799 | if (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) { | 798 | if (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) { |
800 | ret = -EINVAL; | 799 | ret = -EINVAL; |
801 | break; | 800 | break; |
802 | } | 801 | } |
803 | cap.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; | ||
804 | ret = pvr2_ctrl_set_value( | 802 | ret = pvr2_ctrl_set_value( |
805 | pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_CROPL), | 803 | pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_CROPL), |
806 | crop->c.left); | 804 | crop->c.left); |