Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 625b3522 authored by Lad, Prabhakar's avatar Lad, Prabhakar Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarLad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent d5f8fb5b
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;