[PATCH 3/4] media: usb: remove duplicate checks for EPERM in vidioc_g/s_register

From: Lad Prabhakar
Date: Tue May 14 2013 - 01:48:07 EST


From: Lad, Prabhakar <prabhakar.csengg@xxxxxxxxx>

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@xxxxxxxxx>
---
drivers/media/usb/pvrusb2/pvrusb2-hdw.c | 2 --
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 e11267f..01d1c2d 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;
--
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/