[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>
This commit is contained in:
parent
d5f8fb5b46
commit
625b35229b
|
@ -5173,8 +5173,6 @@ int pvr2_hdw_register_access(struct pvr2_hdw *hdw,
|
||||||
int stat = 0;
|
int stat = 0;
|
||||||
int okFl = 0;
|
int okFl = 0;
|
||||||
|
|
||||||
if (!capable(CAP_SYS_ADMIN)) return -EPERM;
|
|
||||||
|
|
||||||
req.match = *match;
|
req.match = *match;
|
||||||
req.reg = reg_id;
|
req.reg = reg_id;
|
||||||
if (setFl) req.val = *val_ptr;
|
if (setFl) req.val = *val_ptr;
|
||||||
|
|
Loading…
Reference in New Issue