]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[media] pvrusb2: Remove dead code
authorMike Isely <isely@pobox.com>
Mon, 14 Mar 2011 01:18:23 +0000 (22:18 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 07:54:36 +0000 (04:54 -0300)
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>
drivers/media/video/pvrusb2/pvrusb2-v4l2.c

index 58617fc656c2147176ffd3c82856598b1a01820b..38761142a4d94235e595897e35ca1cd053acabbf 100644 (file)
@@ -795,12 +795,10 @@ static long pvr2_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg)
        case VIDIOC_S_CROP:
        {
                struct v4l2_crop *crop = (struct v4l2_crop *)arg;
-               struct v4l2_cropcap cap;
                if (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) {
                        ret = -EINVAL;
                        break;
                }
-               cap.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
                ret = pvr2_ctrl_set_value(
                        pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_CROPL),
                        crop->c.left);