summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLad, Prabhakar <prabhakar.csengg@gmail.com>2013-05-14 01:45:16 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-05-27 09:34:33 -0300
commit625b35229bc491e837b385b7ce1e2a8eece3db0f (patch)
tree3a97c1f5447dd830ed622f45ae0a498c472ff13f
parentd5f8fb5b46ed07c4e2a6811eff4ae4368652c9ea (diff)
[media] media: usb: remove duplicate checks for EPERM in vidioc_g/s_register
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>
-rw-r--r--drivers/media/usb/pvrusb2/pvrusb2-hdw.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/usb/pvrusb2/pvrusb2-hdw.c b/drivers/media/usb/pvrusb2/pvrusb2-hdw.c
index e11267f35d87..01d1c2d47cb5 100644
--- a/drivers/media/usb/pvrusb2/pvrusb2-hdw.c
+++ b/drivers/media/usb/pvrusb2/pvrusb2-hdw.c
@@ -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;