aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends
diff options
context:
space:
mode:
authorLad, Prabhakar <prabhakar.csengg@gmail.com>2013-05-14 00:45:15 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-05-27 08:34:20 -0400
commitd5f8fb5b46ed07c4e2a6811eff4ae4368652c9ea (patch)
treebcb60a207cd146f671f6b58856f19b812c2be23a /drivers/media/dvb-frontends
parent7e89bd9f242930371f89f3d8c32eaf42ea1c74b1 (diff)
[media] media: dvb-frontends: remove duplicate checks for EPERM in dbg_g/s_register
This patch removes check for EPERM in dbg_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/dvb-frontends')
-rw-r--r--drivers/media/dvb-frontends/au8522_decoder.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/dvb-frontends/au8522_decoder.c b/drivers/media/dvb-frontends/au8522_decoder.c
index 2099f21e374d..9d159b48e50b 100644
--- a/drivers/media/dvb-frontends/au8522_decoder.c
+++ b/drivers/media/dvb-frontends/au8522_decoder.c
@@ -529,8 +529,6 @@ static int au8522_g_register(struct v4l2_subdev *sd,
529 529
530 if (!v4l2_chip_match_i2c_client(client, &reg->match)) 530 if (!v4l2_chip_match_i2c_client(client, &reg->match))
531 return -EINVAL; 531 return -EINVAL;
532 if (!capable(CAP_SYS_ADMIN))
533 return -EPERM;
534 reg->val = au8522_readreg(state, reg->reg & 0xffff); 532 reg->val = au8522_readreg(state, reg->reg & 0xffff);
535 return 0; 533 return 0;
536} 534}
@@ -543,8 +541,6 @@ static int au8522_s_register(struct v4l2_subdev *sd,
543 541
544 if (!v4l2_chip_match_i2c_client(client, &reg->match)) 542 if (!v4l2_chip_match_i2c_client(client, &reg->match))
545 return -EINVAL; 543 return -EINVAL;
546 if (!capable(CAP_SYS_ADMIN))
547 return -EPERM;
548 au8522_writereg(state, reg->reg, reg->val & 0xff); 544 au8522_writereg(state, reg->reg, reg->val & 0xff);
549 return 0; 545 return 0;
550} 546}