[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>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
625b35229b
commit
7eac97d7e7
@@ -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
|
||||
|
Reference in New Issue
Block a user