[media] media: usb: remove duplicate checks for EPERM in vidioc_g/s_register
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Tue, 14 May 2013 04:45:16 +0000 (01:45 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 27 May 2013 12:34:33 +0000 (09:34 -0300)
This patch removes check for EPERM in vidioc_g/s_register
as this check is already performed by core.

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/pvrusb2/pvrusb2-hdw.c

index e11267f35d87c407a0efb17b16940306f7e47a03..01d1c2d47cb5d9aaf78efaa16d63d1a6077b4dac 100644 (file)
@@ -5173,8 +5173,6 @@ int pvr2_hdw_register_access(struct pvr2_hdw *hdw,
        int stat = 0;
        int okFl = 0;
 
-       if (!capable(CAP_SYS_ADMIN)) return -EPERM;
-
        req.match = *match;
        req.reg = reg_id;
        if (setFl) req.val = *val_ptr;