From: Lad, Prabhakar Date: Tue, 14 May 2013 04:45:16 +0000 (-0300) Subject: [media] media: usb: remove duplicate checks for EPERM in vidioc_g/s_register X-Git-Tag: next-20130617~82^2^2~49 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=625b35229bc491e837b385b7ce1e2a8eece3db0f;p=karo-tx-linux.git [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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- 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;