summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/saa7164/saa7164-encoder.c
diff options
context:
space:
mode:
authorLad, Prabhakar <prabhakar.csengg@gmail.com>2013-05-14 06:45:17 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-05-27 14:34:56 +0200
commit7eac97d7e714429f7ef1ba5d35f94c07f4c34f8e (patch)
tree58ee47b8b4508f354b47cbd3d2f081c37b2fe7d3 /drivers/media/pci/saa7164/saa7164-encoder.c
parent[media] media: usb: remove duplicate checks for EPERM in vidioc_g/s_register (diff)
downloadlinux-7eac97d7e714429f7ef1ba5d35f94c07f4c34f8e.tar.xz
linux-7eac97d7e714429f7ef1ba5d35f94c07f4c34f8e.zip
[media] media: pci: remove duplicate checks for EPERM
This patch removes check for EPERM in dbg_g/s_register and 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>
Diffstat (limited to 'drivers/media/pci/saa7164/saa7164-encoder.c')
-rw-r--r--drivers/media/pci/saa7164/saa7164-encoder.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/media/pci/saa7164/saa7164-encoder.c b/drivers/media/pci/saa7164/saa7164-encoder.c
index 0b74fb2300dd..63a72fb71f30 100644
--- a/drivers/media/pci/saa7164/saa7164-encoder.c
+++ b/drivers/media/pci/saa7164/saa7164-encoder.c
@@ -1306,9 +1306,6 @@ static int saa7164_g_register(struct file *file, void *fh,
struct saa7164_dev *dev = port->dev;
dprintk(DBGLVL_ENC, "%s()\n", __func__);
- if (!capable(CAP_SYS_ADMIN))
- return -EPERM;
-
return 0;
}
@@ -1319,9 +1316,6 @@ static int saa7164_s_register(struct file *file, void *fh,
struct saa7164_dev *dev = port->dev;
dprintk(DBGLVL_ENC, "%s()\n", __func__);
- if (!capable(CAP_SYS_ADMIN))
- return -EPERM;
-
return 0;
}
#endif